Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Problem: I am unable to install an R package in Revolution R on Linux


View products that this article applies to.

Problem

When you try to install an R package on Linux you get the following error message:

"Warning: unable to access index for repository - http://www.revolutionanalytics.com./repositories/cran/2.15/stable/s..."

↑ Back to the top


Solution

A workaround for this issue is to edit the file: 
/usr/lib64/Revo-6.2/R-2.15.3/lib64/R/etc/Rprofile.site

and change the line: r <- c(REVO=Revobase::getRevoRepos())

in this block of code:

if (.Platform$OS.type == "windows"){ 
r["CRAN"] <- Revobase::getRevoRepos(CRANmirror=TRUE) 
} else { 
r <- c(REVO=Revobase::getRevoRepos()) 
}

to:

r <- c(REVO="http://packages.revolutionanalytics.com/cran/2.15/stable")

You will then need to restart Revolution R Enterprise for the changes to take effect.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 3103268
Revision : 1
Created on : 1/7/2017
Published on : 10/26/2015
Exists online : False
Views : 74