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

Add 'codetools' to Suggests: #40

Open
HenrikBengtsson opened this issue Oct 30, 2023 · 0 comments
Open

Add 'codetools' to Suggests: #40

HenrikBengtsson opened this issue Oct 30, 2023 · 0 comments

Comments

@HenrikBengtsson
Copy link

Hello,

your package vignette relies indirectly(*) on the codetools package, which is a package that is not guaranteed to be installed on all systems; it's only a recommended package. Because of this, R CMD check on you package fails on such systems (see below).

(*) Searching the code of your package for codetools gives zero hits, which suggests that it codetools is used by another package that your package depends on, but only as a soft dependency. Because of this, you need to declare codetools as a dependency in your package.

To fix this, please add codetools to Suggests:, i.e.

Suggests: knitr,
    rmarkdown,
    codetools

Example what happens when codetools is not installed:

* using R version 4.3.1 (2023-06-16)
* using platform: x86_64-pc-linux-gnu (64-bit)
...* checking re-building of vignette outputs ... ERROR
Error(s) in re-building vignettes:
  ...
  --- re-building ‘scmap.Rmd’ using rmarkdown
  Quitting from lines 15-17 [knitr-options] (scmap.Rmd)
  Error: processing vignette 'scmap.Rmd' failed with diagnostics:
  there is no package called 'codetools'
  --- failed re-building ‘scmap.Rmd’    
  SUMMARY: processing the following file failed:
  ‘scmap.Rmd’
    
Error: Vignette re-building failed.
Execution halted
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

No branches or pull requests

1 participant