search for: desiredpackages

Displaying 1 result from an estimated 1 matches for "desiredpackages".

2015 Dec 01
1
Package Dependency
...t installed so the install fails. I see this a lot with students who are able to install packages like ggplot2 but then can't load it because a dependency "stringi" is missing. Those students are generally using Windows, but today I reproduced the same on RedHat Linux with R-3.2.2. desiredPackages is a big vector of packages to install. This is using a trick that one of R Core taught me about 15 years ago... > installedPackages <- rownames (installed.packages() ) > alreadyHave <- desiredPackages %in% installedPackages > install.packages(desiredPackages[!alreadyHave], +...