Questions tagged [install.packages]

The R function to install packages from a specified package repository.

The R function to install packages from a specified package repository.

590 questions
6
votes
2 answers

R load error - libproj.so.13: cannot open shared object file: No such file or directory

I am trying to install CRANs population genetics package hierfstat; however the following error with libproj.so.13 is printed: > install.packages("hierfstat") Installing package into ‘/home/ecoevo/R/x86_64-pc-linux-gnu-library/3.6’ (as ‘lib’ is…
6
votes
2 answers

Problem updating rlang when installing dev version of a package

I'm trying to install the dev version of tidyr. When I try devtools::install_github("tidyverse/tidyr") or remotes::install_github("tidyverse/tidyr"), I get the following error: > devtools::install_github("tidyverse/tidyr") Downloading GitHub repo…
user51462
  • 1,658
  • 2
  • 13
  • 41
6
votes
1 answer

How to not need user input for install.packages(type = "both")

Normally, install.packages(..., type = "both") requires user input if there is a package that needs to be built from source. For example (currently, with R 3.5.1), install.packages(c("feather", "tidyr"), type = "both")) will install tidyr from…
r_alanb
  • 873
  • 8
  • 21
6
votes
4 answers

install package on windows ERROR: compilation failed for package 'cldr'

url <- "http://cran.us.r-project.org/src/contrib/Archive/cldr/cldr_1.1.0.tar.gz" pkgFile<-"cldr_1.1.0.tar.gz" download.file(url = url, destfile = pkgFile) Console >trying URL…
Fiona_Wang
  • 163
  • 1
  • 2
  • 12
6
votes
2 answers

How can i get a 'rcom' package?

When I tried executing this install.packages("rcom") I got warning package ‘rcom’ is not available (for R version 3.1.2) I also tried this install.packages(c(, "rcom"), repos = "http://rcom.univie.ac.at/download", lib=.Library) and i got this as…
rehan ali
  • 91
  • 1
  • 1
  • 4
6
votes
1 answer

R Keeps Downloading Packages to tmp Directory

I am using R Studio on a 2103 MacBook Pro. I had no problems before downloading and installing packages, but recently all my packages are being downloaded and then fail to install: trying URL…
cburghard
  • 575
  • 1
  • 5
  • 15
5
votes
1 answer

SSL-certificates installing packages in R 4.2

I have a problem with a custom local CRAN-mirror (jfrog) under windows on a machine without access to the internet: in R 4.1.2, I have no problems accessing the mirror via https, in R 4.2.0, I get errors that the index in PACKAGES can not be…
clemenskuehn
  • 116
  • 8
5
votes
2 answers

restore all R packages after installing a new version of R?

When you are doing an R update, what is the best approach to re-installing and updating all packages that were already installed on your previous R version when some of your packages are on CRAN but the rest are on github (or other sources)? In the…
user63230
  • 4,095
  • 21
  • 43
5
votes
2 answers

One R packages file for multiple Dockerfiles

I have built two Docker images one is my rstudio image and the other is a cron image to run my cronjobs (R scripts). I am building other images (Shiny etc.) that will need the exact same R packages than the cron image and the rstudio image. So I…
ML_Enthousiast
  • 1,147
  • 1
  • 15
  • 39
5
votes
2 answers

Install R packages from requirements.txt file

Is there a functionality like requirements.txt in Python, where you can store a list of packages used into a file, and whenever other people want to run your programs and need to install the dependencies, they can just do pip install -r…
5
votes
1 answer

Install npm package globally that has peer dependency (not mentioned in package.json)

I am trying to install marktext globally using npm (after cloning the repository): npm install -g npm WARN dagre-d3-renderer@0.5.8 requires a peer of d3@^4.13.0 but none is installed. You must install peer dependencies yourself. How should I…
Porcupine
  • 5,885
  • 2
  • 19
  • 28
5
votes
2 answers

How to include more paths under INCLUDE_DIR in configure.vars argument in install.packages() function in R?

I have a problem with gdtools package. I would like to install it from source, but unfortunately I am not able to install any extra libs on Linux box. What I am doing to solve it, it is inclusion of packages in time of…
koralgooll
  • 392
  • 1
  • 3
  • 12
5
votes
4 answers

can't uninstall packages

Hi I uninstalled a package but it still look accessible, can somebody help please? Thank u! > remove.packages("RODBC") Removing package from ‘E:/R/R-3.3.3/library’ (as ‘lib’ is unspecified) > library(RODBC) # no error. it's still there >…
YJZ
  • 3,934
  • 11
  • 43
  • 67
5
votes
1 answer

Octave - How to install packages on Windows

Question Due to the issue in Fix for Octave urlread causing Peer certificate cannot be authenticated with given CA certificates, I cannot install Octave packages on Windows. Please suggest other ways to install. Particularly I would like to go…
mon
  • 18,789
  • 22
  • 112
  • 205
5
votes
2 answers

unable to install R-package from github

I'm trying to install a flowIncubator package from github (link to the package: https://github.com/RGLab/flowIncubator). I'm using R version 3.3.1 (2016-06-21). I've tried this code: devtools::install_github("RGLab/flowIncubator") & get this error:…
Anara
  • 51
  • 1
  • 2
  • 4