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
478
votes
7 answers

How do I install an R package from source?

A friend sent me along this great tutorial on webscraping The New York Times with R. I would really love to try it. However, the first step is to install a package called [RJSONIO][2] from source. I know R reasonably well, but I have no idea how to…
Madjoro
76
votes
4 answers

"Non Zero Exit Status" R 3.0.1 'XML' and 'RCurl'

I am having a bit of trouble installing XML and RCurl on my Ubuntu machine 13.10. I performed all sudo update and upgrades today. I am trying to use rattle for R. I am unable to install 'XML' which is required for the use of rattle. This is pretty…
MCP_infiltrator
  • 3,961
  • 10
  • 45
  • 82
49
votes
1 answer

Is there something like requirements.txt for R?

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…
hans-t
  • 3,093
  • 8
  • 33
  • 39
40
votes
9 answers

Install R packages using docker file

I have installed R using below line in my docker file. Please suggest how do I specify now packages to be installed in my docker file. RUN yum -y install R-core R-devel I'm doing something like this: RUN R -e…
Ashag
  • 837
  • 2
  • 15
  • 24
37
votes
5 answers

Warning "downloaded length != reported length" in installing packages from CRAN

Searching on stackoverflow questions, I found out this link: Error in file.download when downloading custom file . However, my case is a little bit different (I think): 1) I get this annoying warning when installing some packages from CRAN (or also…
Davide Passaretti
  • 2,741
  • 1
  • 21
  • 32
30
votes
12 answers

Installing package - cannot open file - permission denied

I'm working in RStudio and am attempting to install the dplyr package. I have installed various other packages without problem but have hit a problem with this. It seems there are various parts to the install, some of these worked but the problem…
agwah
  • 413
  • 1
  • 4
  • 7
29
votes
7 answers

Installing an R package from local unzipped folder

I am having difficulty installing an unzipped package on a Windows 7 computer without administrative privileges and no internet access. I am using the RGui (not RStudio). Right now I have an unzipped library sitting in a directory. Unfortunately,…
Phantom Photon
  • 768
  • 2
  • 10
  • 20
28
votes
4 answers

Installing private package from Github Package registry fails with not found/not authorized

I created and published a private Github package. Trying to install it with yarn at first, I face the following issue: Whether I try with yarn or npm, it cannot find the package at all although following the exact steps documented by Github…
alexeis
  • 2,152
  • 4
  • 23
  • 30
28
votes
3 answers

Do I have to install packages needed each time when I start Google Colab?

I am using Google colab for one of my projects. I have a list of packages which I need to run the notebook perfectly. So, should I have to install all packages each time I start colab or only installing once I can use them forever?
27
votes
0 answers

ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual'

Ubuntu, Linux Mint, Debian ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual' Warning in install.packages : installation of package ‘e1071’ had non-zero exit status If you run into the error-code…
gph
  • 331
  • 1
  • 3
  • 11
23
votes
5 answers

How to specify (non-R) library path for dynamic library loading in R?

I keep getting the following error when attempting to install readxl or haven in R (both dependencies of tidyverse) post-compilation, when the installer runs the loading test: ** testing if installed package can be loaded Error in dyn.load(file,…
merv
  • 67,214
  • 13
  • 180
  • 245
22
votes
5 answers

R - when trying to install package: InternetOpenUrl failed

Since I've updated both R (to 3.2.2) and RStudio (to 0.99.486) in Win 7, I'm experiencing problems downloading packages. I'm aware of the questions asked here but neither setInternet2(TRUE) nor changing the CRAN mirror helped. The "Tools -> Global…
evoked_potential
  • 323
  • 1
  • 2
  • 5
22
votes
4 answers

What type of object is an R package?

Probably a pretty basic question but a friend and I tried to run str(packge_name) and R threw us an error. Now that I'm looking at it, I'm wondering if an R package is like a .zip file in that it is a collection of objects, say pictures and songs,…
d8aninja
  • 3,233
  • 4
  • 36
  • 60
22
votes
3 answers

Unable to install.packages(): system call failed: Cannot allocate memory; installation of package had non-zero exit status

I'm using R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" on Platform: x86_64-pc-linux-gnu (64-bit). I have an issue installing new packages in R, using RStudio. When I call the install.packages() function, I get: Warning in install.packages…
22
votes
5 answers

MySQL: Package 'mysql-server' has no installation candidate

This error is being shown whenever I want to install any software via command line. Even if i try to install softwares which I know are present at the source from where I am downloading. Below is the full error message i am getting : Reading package…
user3044569
  • 221
  • 1
  • 2
  • 4
1
2 3
39 40