Dear R users;
I have downloaded a grib file format (Met.grib) and I want to export its
data to excel file. Also I want to do some mathematic on some columns. But
I got error. I would be more than happy if anyone can help me to do this. I
have provided the codes and the Met.grib file in this email.
Continuing with this approach:
a1 <- available.packages()
packages <- grep("^rcmdrplugin", rownames(a1), ignore.case = TRUE, value
= TRUE)
missing_pkgs <- setdiff(packages, rownames(installed.packages()))
install.packages(missing_pkgs, dependencies = TRUE)
The pacman package also handles s
"If you can get a vector with all the package names (I do not know how
to do this)..."
See ?available.packages
grep-ing the rownames of the available.packages() result appropriately
should give you a vector of the desired package names to install,
which can then be given to install.packages.
...
If you can get a vector with all the package names (I do not know how to do
this) then you could do something like this;
# Function to check and install missing packages
install_if_missing <- function(pkg) {
if (!require(pkg, character.only = TRUE)) {
install.packages(pkg, dependencies = TRU
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Hi folks:
Curious question. I've added Rcmdr to my setup (R 4.4.1). I would like
to add all of the plugins. Is there a way to get install.packages() to
gather up everything starting 'rcmdrplugin', or do I have to list each
package individually betwe
5 matches
Mail list logo