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
11
votes
2 answers

What is a reliable process for detaching an R package, in order to upgrade it?

I have written a package that uses devtools to include internal data: devtools::use_data(.data, internal = T, overwrite = T) I recently changed that data and rebuilt the package. I want to upgrade that package on another machine that has the older…
logworthy
  • 1,218
  • 2
  • 11
  • 23
10
votes
1 answer

Installing nloptr on Linux - fatal error: nlopt.h: No such file or directory

Another cry for help with installing nloptr package on Linux (Ubuntu 14.04.4 LTS). I looked through many questions but did not manage to find a solution for this. I am unable to install lme4 package in R (version 3.3.1/Rstudio Version 0.99.902) as…
user1442363
  • 800
  • 1
  • 10
  • 18
10
votes
1 answer

pass configure arguments to install packages in R

I am trying to install a package in R from the CRAN repository. I have to pass a flag at the configure stage, but I can't figure out how to do it in install.packages: > install.packages("Rmpfr") .......... checking mpfr.h usability... no checking…
cmo
  • 3,762
  • 4
  • 36
  • 64
8
votes
2 answers

R install.packages returns 'ERROR: failed to lock directory'

[Similar question to 14382209 but suggestions there haven't solved this issue] New installation of R 4.0.0 and tidyverse on a Windows 7 work computer returns this classic failed to create lock directory error install.packages('tidyverse') WARNING:…
Brent
  • 425
  • 1
  • 3
  • 10
8
votes
1 answer

“Non Zero Exit Status” R 3.6.0 "Biobase"

I need to install different packages on R. The OS is ubuntu for windows. When I try "BiocManager::install("Biobase") I get the following error: ** R ** data ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help…
8
votes
4 answers

AWS Linux Server install R package

I try to install the package "data.table" (and "aws.s3)" via Rstudio Server on an Amazon Linux instance following this guide: http://stanke.co/category/r/ Unfortunately, I get the following error message. I really don't know what else to do. Can…
Sylvi0202
  • 901
  • 2
  • 9
  • 13
8
votes
1 answer

How to backup Anaconda added packages?

I have Anaconda for Python 2, It came packed with a lot of useful packages. During my work, I have added several packages to it using conda install command. Now I have to format my system, and I want to backup/pack all the added libraries, either as…
Mohammad ElNesr
  • 2,477
  • 4
  • 27
  • 44
8
votes
2 answers

I want to use EBImage package but it says it is not available for my version of R

Warning in install.packages : package ‘EBImage’ is not available (for R version 3.2.4 Revised) what to do now any help,please guide me.
Varun Singh
  • 63
  • 1
  • 3
  • 13
8
votes
2 answers

trouble installing packages in CentOS: internet routines cannot be loaded

I am having some trouble installing packages in R on CentOS after updating R. Here is an example of what happens when I try to install a package in R: > install.packages("ggplot2") Installing package into…
boshek
  • 4,100
  • 1
  • 31
  • 55
8
votes
1 answer

Executing R scripts during package installation

Hopefully this has a straightforward answer, but I haven't been able to find it as yet. I'm writing an R package, and when installed on Windows I want it to execute a script that searches for a system file i.e. list.files(path = "C:/Program Files/,…
Jordan Mackie
  • 1,193
  • 10
  • 17
8
votes
3 answers

Error in getOctD(x, offset, len) : invalid octal digit

I try to install packages (pdbDEMO actually and all the dependencies) and I am encountering an issue, that I cannot solve and I haven't found any solution about it. I use the R command : >install.packages("pbdDEMO",…
user2753495
  • 81
  • 1
  • 3
7
votes
0 answers

Unable to install packages via renv::restore() ("R was unable to find one or more FORTRAN libraries during compilation.")

I've downloaded an old repo on a new laptop (running on MacOS Catalina) and attempted to run a R script. The repo has a renv lock file - meaning, I should be able to restore all dependencies as they were. But as I run the renv::restore() command,…
abtinsr
  • 71
  • 2
7
votes
5 answers

Unable to install package car

I am using R version 3.2.3 in Linux mint 17.3 64 bit. I was trying to install the package "car" with dependencies=TRUE, but the installation failed with the following error messages: > warnings() Warning messages: 1: In install.packages("car",…
Bishwarup Paul
  • 361
  • 1
  • 4
  • 12
7
votes
1 answer

How to install multicore package on R v3.1.2?

I am using default command to install multicore package install.packages('multicore','http://www.rforge.net/') as written here http://www.rforge.net/multicore/files/ but I recieve warning: install.packages('multicore','http://www.rforge.net/') …
Marcin
  • 7,834
  • 8
  • 52
  • 99
7
votes
5 answers

R install package RevoScaleR

In trying to install package "RevoScaleR", I get the following error. I have tried installing this package with various versions of R but get the same error every time. Does anyone have any idea why? install.packages("RevoScaleR") Warning in…
R User
  • 253
  • 1
  • 2
  • 11
1 2
3
39 40