You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running goodpractice::gp("rJavaEnv") I got a suggestion:
✖ avoid calling setwd(), it changes the global environment. If you need it, consider using on.exit() to restore the
working directory.
R/java_download.R:36:5
R/java_quick_install.R:28:5
vignettes/rJavaEnv-step-by-step.qmd:27:1
vignettes/rJavaEnv.qmd:48:1
So even though this code is not critical for the functioning of the package, it would indeed be nice to stick to the good practices and add the appropriate on.exit() call to restore the working directory.
The text was updated successfully, but these errors were encountered:
There is some code that is mainly intended for testing and running examples.
rJavaEnv/R/java_quick_install.R
Lines 26 to 39 in 1de37c0
and
rJavaEnv/R/java_download.R
Lines 33 to 41 in 1de37c0
After running
goodpractice::gp("rJavaEnv")
I got a suggestion:So even though this code is not critical for the functioning of the package, it would indeed be nice to stick to the good practices and add the appropriate
on.exit()
call to restore the working directory.The text was updated successfully, but these errors were encountered: