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
3
votes
0 answers

Error while installing any package in R

I am trying to install matrixStats package in R. The command I have used is: install.packages("matrixStas", dependencies = TRUE) This command produces the following error: * installing *source* package ‘colorspace’ ... ** package…
Pranali S
  • 31
  • 1
3
votes
1 answer

Errors installing 'forecast' package in R version 3.3.2

Trying to install 'forecast' package in R version 3.3.2 on MacOS Sierra as follows: install.packages("forecast") Getting a slew of errors I don't understand. First it downloads all dependency packages from http://cloud.r-project.org. First error…
93i7hdjb
  • 1,136
  • 1
  • 9
  • 15
3
votes
0 answers

Can't install r package "bsts" due to "had status 127"

I can't install package "bsts": > install.packages("bsts") also installing the dependencies ‘BoomSpikeSlab’, ‘Boom’ There are binary versions available but the source versions are later: binary source needs_compilation BoomSpikeSlab…
Mark Li
  • 429
  • 1
  • 7
  • 21
3
votes
2 answers

Installing R packages from a local repo (all .tar.gz files have been downloaded there)

Good morning from Australia, Since our computers at work do not have internet access, I've asked our IT Manager to download all the R packages and place them in a shared network location. I've since transferred those 4GB of packages to my a local…
3
votes
7 answers

Error when install package dplyr in R. Error in install.packages : missing value where TRUE/FALSE needed

I tried to install package dplyr but it always show the error: Error in install.packages : missing value where TRUE/FALSE needed Here is the console history: > install.packages("dplyr") also installing the dependency ‘BH’ trying URL…
Tuan Anh
  • 31
  • 1
  • 1
  • 2
3
votes
0 answers

Can I move all packages out of C:\Program Files\R\R-3.3.0\library\ into a user directory?

My problem: > update.packages() Warning: package 'nlme' in library 'C:/Program Files/R/R-3.3.0/library' will not be updated This is well-known and is because writing to C:\Program Files\ needs Administrator (or at least elevated privileges). I…
vijucat
  • 2,059
  • 1
  • 15
  • 17
3
votes
0 answers

.libPaths not accurately directing install.packages

I am confused! I have just done a R and Rstudio reinstall on a work computer (where I am not administrator). I have added to the Environmental Variables R_LIBS_USER = "C:/Users/USER.NAME/Documents/R/win-library/3.2"as the location for my library.…
3
votes
4 answers

Problems installing data.table for R

I'm trying to install data.table library for R, but I can't get it to work.I've tried using both CRAN and Bioconductor but I keep getting an error that the package is not available for R 3.2.2: > biocLite('data.table') BioC_mirror:…
Ethan
  • 387
  • 1
  • 2
  • 13
3
votes
3 answers

Using cordova how can i get list of installed apps on android device?

Any cordova pulgin ? What all things i need to import in .java file for getting installed apps on android?
Adarsh Gowda K R
  • 941
  • 8
  • 15
3
votes
1 answer

Unable to install xlsx package on R version 3.1.3

When I run install.packages("xlsx") I get this: Installing package into ‘C:/Users/Zahra/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) Warning: unable to access index for repository…
nasim
  • 725
  • 2
  • 8
  • 17
3
votes
0 answers

Prevent R install.packages() method from changing repos

For security reasons, we have created our own mini CRAN repository. I would like to prevent R packages from being installed from any location other than our repository, whether this is from a tar file on their desktop or an actual CRAN repository.…
michaelp
  • 353
  • 6
  • 24
3
votes
1 answer

Add rCharts to packrat

I am working on an R project (R studio) that requires several packages and packrat to manage them. I have been able to find CRAN or binaries for all of them except rCharts which has to be installed with: require(devtools) …
Ryan
  • 231
  • 3
  • 9
3
votes
7 answers

Ubuntu 12.04 R install.packages() does not work. No warning, no install

I am running a ubuntu 12.04 instance, and have R3.0.2 loaded, but cannot get install.packages() to install packages. It downloads the files, but appears to not install them. Am I missing something here? I have never had this trouble before running…
Jim Crozier
  • 1,378
  • 2
  • 16
  • 28
3
votes
1 answer

R: error while installing packages from terminal

I am trying to install some packages in R using shell commands. I wrote a R file "installDependencies.R" for installing packages. The file is as follows: packages <- c("xts","stringr","log4r") # Function to check whether package is…
Dinoop Nair
  • 2,663
  • 6
  • 31
  • 51
2
votes
1 answer

How to deal with install.packages( ) warning "package ‘Rtools’ is not available for this version of R"?

When trying to install Rtools , I get the message below. My R version is 4.1.2. install.packages("Rtools") WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of…
MKro
  • 51
  • 4