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
Additionally, potentially this should be a package itself?
Is it possible to get the original researchers to set up renve from their machines. This should give us the explicit package versions in use. Also we should have a note of the version of R this was originally designed to run against for full reproducibility.
Just tried to run global.R and need to install a few packages first. I recommend updating to something like the following for ease of use:
If a package is installed, it will be loaded. If any
are not, the missing package(s) will be installed
from CRAN and then loaded.
First specify the packages of interest
packages = c("tidyverse", "geomorph",
"phytools", "viridis")
Now load or install&load all
package.check <- lapply(
packages,
FUN = function(x) {
if (!require(x, character.only = TRUE)) {
install.packages(x, dependencies = TRUE)
library(x, character.only = TRUE)
}
}
)
https://vbaliga.github.io/verify-that-r-packages-are-installed-and-loaded/
The text was updated successfully, but these errors were encountered: