Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201867

How to install packages without updating the existing ones

$
0
0

I want to install R packages without updating the existing ones. for example, I am installing "dplyr", but it imports several others as given in the list below from the cran pdf. https://cran.r-project.org/web/packages/dplyr/dplyr.pdf

Depends R (¿= 3.2.0)
Imports assertthat (¿= 0.2.0),
glue (¿= 1.3.0),
magrittr (¿= 1.5),
methods,
pkgconfig,
R6,
Rcpp (¿= 1.0.1),
rlang (¿= 0.4.0),
tibble (¿= 2.0.0),
tidyselect (¿= 0.2.5),
utils

I have tried install.packages("dplyr", dependencies = f) but it seems still install/updates the other packages.

What I want is a function which checks if the other packages which are required already exists then don't install/update them, if the version is incompatible, the give warning. only install packages which do not exist already.

The reason I want to do it is, I plan to write R code in a software called "Alteryx", which comes with R and a lot of packages out of the box. But when I install new R packages in Alteryx, the updates to existing packages throws an error.


Viewing all articles
Browse latest Browse all 201867

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>