Force install.packages ()

Is it possible to install the package in R?

> install.packages("gsubfn") Installing package(s) into '/home/sebastian/R/x86_64-unknown-linux-gnu-library/2.14' (as 'lib' is unspecified) --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done Warning message: In getDependencies(pkgs, dependencies, available, lib) : package 'gsubfn' is not available (for R version 2.14.2) 

In this case, the package requires R> = 2.15, and I only have R 2.14.2. I wonder if I can make a power plant.

+7
source share
1 answer

Download the package from the source. Unzip it and move the folder to the library (~ / R / 2.14 / Library). Go to your IDE and execute library(<package_name>)

This may or may not work properly, and you will most likely receive a similar warning message that package <name> was built under R 2.14 . Ignore it. Most functions should work. However, warn that there may be some functions that produce funny output, or nothing at all, as they may use some functions that are not in R 2.14.

However, you can upgrade your version of R. This, IMO, is the best way to go.

+4
source

All Articles