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
20
votes
5 answers

lib unspecified & Error in loadNamespace

I had everything working with R and RStudio, but then I moved the folders when cleaning up my computer directories & files. Now I'm getting the error message below. Should R and RStudio be installed under Program Files or Program Files (x86)? Should…
kevin c
  • 301
  • 1
  • 2
  • 5
19
votes
3 answers

Error in install.packages: internet routines cannot be loaded using StatET while it works in R console

I was a happy user of StatET on Ubuntu 14.04 until recently when after R upgrades strange things begin to happen. Anything related to network operations fails. For example, I can not install packages from CRAN any more: >…
Samo
  • 2,065
  • 20
  • 41
18
votes
1 answer

package ‘pbkrtest’ is not available (for R version 3.2.2)

I want to install the package "car" but it depends of a package "pbkrtest" I can't install : ERROR: dependency ‘pbkrtest’ is not available for package ‘car’ Warning in install.packages : installation of package ‘car’ had non-zero exit status …
tal29
  • 189
  • 1
  • 1
  • 3
16
votes
1 answer

R Studio 1.1.456 (Windows): Why do I sometimes have to install binary packages instead of installing from the source?

I am asking this question because I recently solved a problem installing R Shiny (see below). However, the answers I find don't expand in detail about why this problem occurs and I really want to understand to improve my knowledge of R and why these…
Samuel Harper
  • 399
  • 1
  • 2
  • 13
16
votes
1 answer

Offline installation of a list of packages: getting dependencies in order

I've got the source files for a bunch of packages and their dependencies that I want to install on computers that have no internet access. I want to install all of these on other computers using as USB stick, but the install fails for some packages…
Ben
  • 41,615
  • 18
  • 132
  • 227
15
votes
8 answers

Can't access User Library in R - "Non-Zero Exit Status" warning

When I tried to install packages on my work laptop, I got an error. I've been told that I have full privileges with the laptop, so there should be no blocks. I think it might be something to do with the file path to the library where installed…
Mike
  • 2,017
  • 6
  • 26
  • 53
14
votes
1 answer

Error in install.packages : type =="both" cannot be used with 'repos =NULL'

Actually I am trying to install packages offline. I have R studio. what I do is based on previously asked question as follows: install.packages(C:/Users/Desktop/class_7.3-12.zip", repos = NULL) I get the error I mentioned in the title. is someone…
user1267127
12
votes
2 answers

R keeps asking about "installing from sources that need compilation"

I am trying to install packages (devtools, plyr and several others) and keep getting stuck with the same problem, which seems to appear for some packages more often than others There are binary versions available but the source versions are…
Gmichael
  • 526
  • 1
  • 5
  • 16
12
votes
2 answers

Error: package or namespace load failed for ‘car’

I'm unable to load the car package in R. I tried reinstalling using install.packages("car",dependencies=TRUE) both from R and RStudio. I tried installing quantreg as advised in another post and then installing it again. Installation appears to be…
Charlie Glez
  • 231
  • 1
  • 2
  • 4
12
votes
1 answer

Can't install ISLR package

This is the code I ran: install.packages(ISLR); And this was the response: >Error in install.packages : object 'ISLR' not found Any advice?
Madhavi Jouhari
  • 2,282
  • 5
  • 25
  • 40
12
votes
2 answers

Error installing 'topicmodels' package, non zero exit status; Ubuntu

On Ubuntu 14.04, trusty: install.packages('topicmodels') Error message: compilation terminated. make: *** [ctm.o] Error 1 ERROR: compilation failed for package ‘topicmodels’ * removing ‘/home/.../R/x86_64-pc-linux-gnu-library/3.1/topicmodels’ The…
Andreas
  • 1,923
  • 19
  • 24
12
votes
3 answers

install.packages R on Ubuntu 12.04 downloads but does not install packages

I'm perplexed. I've done this process a dozen times and never had this issue. I installed the latest version of R for Ubuntu I enter R, no issues at all, gives me the latest version, and I can load native packages. But When I try to install new…
Erik Westlund
  • 556
  • 6
  • 14
12
votes
3 answers

package doMC NOT available for R version 3.0.0 warning in install.packages

For some packages like doMC & doSMP, i get the warning & inability to library(doMC). As shown below, i have no problem with subselect thus no file/directory permission issue. Also tried repo=http://cran.us.r-project.org & others, no luck. please…
Yu Le
  • 233
  • 1
  • 4
  • 8
11
votes
5 answers

Unable to install packages after R update: unable to access index for repository: internet routines cannot be loaded

I use RStudio, and I updated R yesterday to the following version: R version 4.0.0 (2020-04-24) -- "Arbor Day" Copyright (C) 2020 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) Now, I can't connect to any CRAN…
11
votes
4 answers

How to find out which package was installed from GitHub in my R library?

I want to know how many packages in my current library were installed from GitHub but can't find a way to go about it # The number of installed packages in my library length(.packages(all.available=TRUE)) [1] 145 This R-bloggers post showed the…
IloveCatRPython
  • 631
  • 8
  • 20
1
2
3
39 40