Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checks when Suggests are unavailable #565

Closed
Robinlovelace opened this issue Aug 2, 2024 · 1 comment · Fixed by #566
Closed

Checks when Suggests are unavailable #565

Robinlovelace opened this issue Aug 2, 2024 · 1 comment · Fixed by #566

Comments

@Robinlovelace
Copy link
Member

Motivated by another email from CRAN I ran the following:

devtools::check(env_vars = c(`_R_CHECK_DEPENDS_ONLY_` = TRUE))
══ Documenting ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
ℹ Updating stplanr documentation
ℹ Loading stplanr

══ Building ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Setting env vars:
• CFLAGS    : -Wall -pedantic -fdiagnostics-color=always
• CXXFLAGS  : -Wall -pedantic -fdiagnostics-color=always
• CXX11FLAGS: -Wall -pedantic -fdiagnostics-color=always
• CXX14FLAGS: -Wall -pedantic -fdiagnostics-color=always
• CXX17FLAGS: -Wall -pedantic -fdiagnostics-color=always
• CXX20FLAGS: -Wall -pedantic -fdiagnostics-color=always
── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘/home/robin/github/ropensci/stplanr/DESCRIPTION’ ...
─  preparing ‘stplanr’:
✔  checking DESCRIPTION meta-information ...
─  installing the package to build vignettes
✔  creating vignettes (6.7s)
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘stplanr_1.2.2.tar.gz’
   
══ Checking ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Setting env vars:
• _R_CHECK_CRAN_INCOMING_USE_ASPELL_           : TRUE
• _R_CHECK_CRAN_INCOMING_REMOTE_               : FALSE
• _R_CHECK_CRAN_INCOMING_                      : FALSE
• _R_CHECK_FORCE_SUGGESTS_                     : FALSE
• _R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_: FALSE
• _R_CHECK_DEPENDS_ONLY_                       : TRUE
── R CMD check ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
─  using log directory ‘/tmp/RtmpqsQwPw/file439eb66858d99/stplanr.Rcheck’
─  using R version 4.4.1 (2024-06-14)
─  using platform: x86_64-pc-linux-gnu
─  R was compiled by
       gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
       GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
─  running under: Ubuntu 22.04.4 LTS
─  using session charset: UTF-8
─  using options ‘--no-manual --as-cran’
✔  checking for file ‘stplanr/DESCRIPTION’ ...
─  checking extension type ... Package
─  this is package ‘stplanr’ version ‘1.2.2’
─  package encoding: UTF-8
✔  checking package namespace information ...
✔  checking package dependencies (605ms)
✔  checking if this is a source package ...
✔  checking if there is a namespace
✔  checking for executable files ...
✔  checking for hidden files and directories ...
✔  checking for portable file names ...
✔  checking for sufficient/correct file permissions ...
✔  checking whether package ‘stplanr’ can be installed (1.4s)
✔  checking installed package size ...
✔  checking package directory
✔  checking for future file timestamps (5.4s)
✔  checking ‘build’ directory ...
✔  checking DESCRIPTION meta-information ...
✔  checking top-level files
✔  checking for left-over files
✔  checking index information ...
✔  checking package subdirectories ...
✔  checking code files for non-ASCII characters ...
✔  checking R files for syntax errors ...
✔  checking whether the package can be loaded ...
✔  checking whether the package can be loaded with stated dependencies ...
✔  checking whether the package can be unloaded cleanly ...
✔  checking whether the namespace can be loaded with stated dependencies ...
✔  checking whether the namespace can be unloaded cleanly ...
✔  checking loading without being on the library search path ...
✔  checking dependencies in R code (664ms)
✔  checking S3 generic/method consistency ...
✔  checking replacement functions ...
✔  checking foreign function calls ...
✔  checking R code for possible problems (2.2s)
✔  checking Rd files ...
✔  checking Rd metadata ...
✔  checking Rd line widths ...
✔  checking Rd cross-references ...
✔  checking for missing documentation entries ...
✔  checking for code/documentation mismatches (564ms)
✔  checking Rd \usage sections (359ms)
✔  checking Rd contents ...
✔  checking for unstated dependencies in examples ...
✔  checking contents of ‘data’ directory ...
✔  checking data for non-ASCII characters ...
✔  checking LazyData
✔  checking data for ASCII and uncompressed saves ...
✔  checking installed files from ‘inst/doc’ ...
✔  checking files in ‘vignettes’ ...
E  checking examples (3.4s)
   Running examples in ‘stplanr-Ex.R’ failed
   The error most likely occurred in:
   
   > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
   > ### Name: rnet_group
   > ### Title: Assign segments in a route network to groups
   > ### Aliases: rnet_group rnet_group.default rnet_group.sfc rnet_group.sf
   > 
   > ### ** Examples
   > 
   > rnet <- rnet_breakup_vertices(stplanr::osm_net_example)
   > rnet$group <- rnet_group(rnet)
   You must install igraph for this function to work
   > plot(rnet["group"])
   Error in `[.data.frame`(x, i) : undefined columns selected
   Calls: plot -> [ -> [.sf -> [ -> [.data.frame
   Execution halted
E  checking examples with --run-donttest (3.4s)
   Running examples in ‘stplanr-Ex.R’ failed
   The error most likely occurred in:
   
   > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
   > ### Name: rnet_group
   > ### Title: Assign segments in a route network to groups
   > ### Aliases: rnet_group rnet_group.default rnet_group.sfc rnet_group.sf
   > 
   > ### ** Examples
   > 
   > rnet <- rnet_breakup_vertices(stplanr::osm_net_example)
   > rnet$group <- rnet_group(rnet)
   You must install igraph for this function to work
   > plot(rnet["group"])
   Error in `[.data.frame`(x, i) : undefined columns selected
   Calls: plot -> [ -> [.sf -> [ -> [.data.frame
   Execution halted
✔  checking for unstated dependencies in ‘tests’ ...
─  checking tests ...
✔  Running ‘testthat.R’ (436ms)
✔  checking for unstated dependencies in vignettes ...
✔  checking package vignettes ...
✔  checking re-building of vignette outputs (614ms)
✔  checking for non-standard things in the check directory ...
✔  checking for detritus in the temp directory
   
   See
     ‘/tmp/RtmpqsQwPw/file439eb66858d99/stplanr.Rcheck/00check.log’
   for details.
   
   
── R CMD check results ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── stplanr 1.2.2 ────
Duration: 23.5s

❯ checking examples ... ERROR
  Running examples in ‘stplanr-Ex.R’ failed
  The error most likely occurred in:
  
  > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
  > ### Name: rnet_group
  > ### Title: Assign segments in a route network to groups
  > ### Aliases: rnet_group rnet_group.default rnet_group.sfc rnet_group.sf
  > 
  > ### ** Examples
  > 
  > rnet <- rnet_breakup_vertices(stplanr::osm_net_example)
  > rnet$group <- rnet_group(rnet)
  You must install igraph for this function to work
  > plot(rnet["group"])
  Error in `[.data.frame`(x, i) : undefined columns selected
  Calls: plot -> [ -> [.sf -> [ -> [.data.frame
  Execution halted

❯ checking examples with --run-donttest ... ERROR
  Running examples in ‘stplanr-Ex.R’ failed
  The error most likely occurred in:
  
  > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
  > ### Name: rnet_group
  > ### Title: Assign segments in a route network to groups
  > ### Aliases: rnet_group rnet_group.default rnet_group.sfc rnet_group.sf
  > 
  > ### ** Examples
  > 
  > rnet <- rnet_breakup_vertices(stplanr::osm_net_example)
  > rnet$group <- rnet_group(rnet)
  You must install igraph for this function to work
  > plot(rnet["group"])
  Error in `[.data.frame`(x, i) : undefined columns selected
  Calls: plot -> [ -> [.sf -> [ -> [.data.frame
  Execution halted

2 errors ✖ | 0 warnings ✔ | 0 notes ✔
> 
@Robinlovelace
Copy link
Member Author

r-lib/devtools#2225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant