-
Notifications
You must be signed in to change notification settings - Fork 14
no visible binding for global variable for CRAN check #57
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
Comments
Causes an R CMD check note: r-lib/zeallot#57 Also specify where c14_lab_code thesaurus comes from, for the same reason.
To pass CRAN checks you just need to use
You can specify all such variables throughout your package in a single |
Using Another solution would be to simply initialize the variables before the assignment: d_fit <- info_peak <- NA # or whatever makes more sense than NA
c(d_fit, info_peak) %<-% rough_fitting(INPUT) |
Read r-lib/zeallot#57 for more details
The dotty package includes a fix for this, https://github.com/kevinushey/dotty/blob/main/R/dotify.R |
The development version now includes a .onLoad <- function(libname, pkgname) {
zeallous()
} Created on 2025-04-17 with reprex v2.1.1 Thank you to @kevinushey and the dotty package for making me aware of codetools and this approach. |
when using zeallot, package can't pass CRAN check:
Any suggestions?
The text was updated successfully, but these errors were encountered: