-
Notifications
You must be signed in to change notification settings - Fork 93
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
bump to v0.3.14 #578
bump to v0.3.14 #578
Conversation
@renkun-ken CRAN check doesn't like the use of attach, PTAL. |
ab22ea1
to
6a56d74
Compare
R/diagnostics.R
Outdated
attach(globals, name = env_name, warn.conflicts = FALSE) | ||
on.exit(detach(env_name, character.only = TRUE)) | ||
parent.env(globals) <- environment() | ||
lints <- with(globals, lintr::lint(path, cache = cache, text = content)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if globals
contains symbols such as path
, and cache, and content
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried putting path <- NULL
in a package R file, and the following occurs:
Failed to run diagnostics: ! error in callr subprocess
Caused by error in `if (needs_tempfile) { ...`:
! missing value where TRUE/FALSE needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Let me fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the variables must be accessible from the global environment. Looks like globals
must be attached and we'll have to walk-around the CRAN policy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just like what callr has done using do.call("attach", ...)
at
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already fixed via 8b27a18.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, submitting to CRAN.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It's on the way to CRAN. |
Will merge after CRAN accepts the submission.