Skip to content

Commit

Permalink
example statistical grid
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapereirabr committed Sep 10, 2023
1 parent 1ca8f25 commit 2d0daa2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion r-package/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Suggests:
dplyr (>= 0.8-3),
ggplot2 (>= 3.3.1),
knitr,
rmarkdown (>= 2.6),
rmarkdown,
scales,
testthat
RoxygenNote: 7.2.3
Expand Down
4 changes: 2 additions & 2 deletions r-package/R/read_statistical_grid.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
#' @family area functions
#'
#' @examplesIf identical(tolower(Sys.getenv("NOT_CRAN")), "true")
#' # Read specific municipality at a given year
#' # Read a particular grid at a given year
#' grid <- read_statistical_grid(code_grid = 45, year=2010)
#'
#' # Read all municipalities of a state at a given year
#' # Read the grid covering a given state at a given year
#' state_grid <- read_statistical_grid(code_grid = "RJ")
#'
read_statistical_grid <- function(code_grid, year=2010, showProgress=TRUE){ # nocov start
Expand Down
4 changes: 2 additions & 2 deletions r-package/man/read_statistical_grid.Rd

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

2 changes: 2 additions & 0 deletions r-package/tests/tests_rafa/test_rafa.R
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,8 @@ rcmdcheck::rcmdcheck(build_args = c('--compact-vignettes=gs+qpdf'))
Sys.setenv(NOT_CRAN = "true")
devtools::check(pkg = ".", cran = FALSE, env_vars = c(NOT_CRAN = "true"))

devtools::check(env_vars = c('_R_CHECK_DEPENDS_ONLY_'="true"))
devtools::check(env_vars = c('_R_CHECK_SUGGESTS_ONLY_'="true"))

# CRAN
Sys.setenv(NOT_CRAN = "false")
Expand Down

0 comments on commit 2d0daa2

Please sign in to comment.