Monday, April 25, 2016

Errors installing packages offline from GitHub

Leave a Comment

Suddenly, the proposed solutions to Installing a package offline from GitHub do not work.

I recently updated to R 3.2.5 (from 3.2.2), which may or may not be the root of the issue.

But now when I run, e.g.

install.packages("F:/data.table-master.zip", repos = NULL,                  type = "source", verbose = TRUE) 

I get no errors, and the verbose output looks right:

Installing package into 'C:/Users/Mike/Documents/R/win-library/3.2'

(as lib is unspecified)

system (cmd0): C:/PROGRA~1/R/R-32~1.5/bin/x64/R CMD INSTALL

1): succeeded 'C:/PROGRA~1/R/R-32~1.5/bin/x64/R CMD INSTALL -l "C:\Users\Mike\Documents\R\win-library\3.2" "F:/data.table-master.zip"

but installation has failed.

install.packages has installed to the folder data.table-master. However, if I try and run library("data.table-master"), I get:

Error in library("data.table-master") :

there is no package called data.table-master

(but library(data.table) loads an older version)

If I try and overwrite the data.table folder, I'll get:

Error in library(data.table) : data.table is not a valid installed package

Comparing the folder for the valid installation, I see help, html and Meta folders which don't exist in the version that was installed to data.table-master, and the R files are still in .R form instead of the .rdb/.rdx binary versions typical of a valid install. Which means install.packages really just unzipped my folder? Seems the output of verbose is truly useless junk.

What is going wrong? Is there something I have to change in Rtools on account of having updated R?

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment