Skip to content

Commit

Permalink
Wrap tests in donttest to avoid > 5 second failure during CRAN check
Browse files Browse the repository at this point in the history
  • Loading branch information
cjendres1 committed Jun 2, 2022
1 parent 35bcbb6 commit 6f6c72a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions R/nhanes.R
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ nhanesTables <- function(data_group, year, nchar=100, details = FALSE, namesonly
#' Each data table contains multiple, sometimes more than 100, fields. It is helpful to list the field
#' descriptions to ascertain quickly if a data table is of interest.
#' @examples
#' nhanesTableVars('LAB', 'CBC_E')
#' \donttest{nhanesTableVars('LAB', 'CBC_E')}
#' \donttest{nhanesTableVars('EXAM', 'OHX_E', details=TRUE, nchar=50)}
#' \donttest{nhanesTableVars('DEMO', 'DEMO_F', namesonly = TRUE)}
#' @export
Expand Down Expand Up @@ -312,7 +312,7 @@ nhanesTableVars <- function(data_group, nh_table, details = FALSE, nchar=100, na
#' are stored in SAS '.XPT' format. Function nhanes cannot be used to import limited
#' access data.
#' @examples
#' nhanes('BPX_E')
#' \donttest{nhanes('BPX_E')}
#' \donttest{nhanes('FOLATE_F')}
#' @export
#'
Expand Down Expand Up @@ -620,7 +620,7 @@ nhanesSearch <- function(search_terms=NULL, exclude_terms=NULL, data_group=NULL,
#' that match a given name pattern. Only a single pattern may be entered.
#' @examples
#' \donttest{nhanesSearchTableNames('BMX')}
#' nhanesSearchTableNames('HPVS', includerdc=TRUE, details=TRUE)
#' \donttest{nhanesSearchTableNames('HPVS', includerdc=TRUE, details=TRUE)}
#' @export
#'
nhanesSearchTableNames <- function(pattern=NULL, ystart=NULL, ystop=NULL, includerdc=FALSE, nchar=100, details=FALSE) {
Expand Down
2 changes: 1 addition & 1 deletion man/nhanes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/nhanesSearchTableNames.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/nhanesTableVars.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6f6c72a

Please sign in to comment.