microsoft / microsoft-r-open

Microsoft R Open Source
212 stars 69 forks source link

package ‘RevoUtils’ in options("defaultPackages") was not found #62

Closed nick-youngblut closed 5 years ago

nick-youngblut commented 6 years ago

I'm using Rstudio-server installed on a linux VM (Ubuntu 16.04) and running Microsoft R Open. I keep getting the following warning when starting an R session or when installing a package (the example shows starting an R session):

Restarting R session...

Microsoft R Open 3.4.3
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2017 Microsoft Corporation

Using the Intel MKL for parallel mathematical computing (using 40 cores).

Default CRAN mirror snapshot taken on 2018-01-01.
See: https://mran.microsoft.com/.

During startup - Warning messages:
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘RevoUtils’
2: package ‘RevoUtils’ in options("defaultPackages") was not found 

When I try to install the package, I get the following error:

Warning in install.packages :
  package ‘RevoUtils’ is not available (for R version 3.4.3)

As far as I can tell, RevoUtils isn't available for R v3.4.3 via MRAN or CRAN, and I generally can't find much information about RevoUtils. How do I either install the package or remove the warning?

samyishak commented 6 years ago

I get a similar issue, although I'm seeing it on Windows 10 when using packrat within an RStudio RProject:

R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

Microsoft R Open 3.4.3
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2017 Microsoft Corporation

Using the Intel MKL for parallel mathematical computing (using 4 cores).

Default CRAN mirror snapshot taken on 2018-01-01.
See: https://mran.microsoft.com/.

Warning message:
In readLines(path) :
  incomplete final line found on 'C:/code/behavior-scoring/.gitignore'
During startup - Warning messages:
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘RevoUtils’
2: package ‘RevoUtils’ in options("defaultPackages") was not found 
> devtools::session_info()
Session info -------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.4.3 (2017-11-30)
 system   x86_64, mingw32             
 ui       RStudio (1.1.453)           
 language (EN)                        
 collate  English_United States.1252  
 tz       America/Phoenix             
 date     2018-05-25                  

Packages -----------------------------------------------------------------------------------------------------------------
 package       * version date       source        
 backports       1.1.2   2017-12-13 CRAN (R 3.4.3)
 base          * 3.4.3   2018-01-10 local         
 compiler        3.4.3   2018-01-10 local         
 datasets      * 3.4.3   2018-01-10 local         
 devtools        1.13.4  2017-11-09 CRAN (R 3.4.3)
 digest          0.6.13  2017-12-14 CRAN (R 3.4.3)
 evaluate        0.10.1  2017-06-24 CRAN (R 3.4.3)
 graphics      * 3.4.3   2018-01-10 local         
 grDevices     * 3.4.3   2018-01-10 local         
 htmltools       0.3.6   2017-04-28 CRAN (R 3.4.3)
 knitr           1.18    2017-12-27 CRAN (R 3.4.3)
 magrittr        1.5     2014-11-22 CRAN (R 3.4.3)
 memoise         1.1.0   2017-04-21 CRAN (R 3.4.3)
 methods       * 3.4.3   2018-01-10 local         
 packrat         0.4.8-1 2016-09-07 CRAN (R 3.4.3)
 Rcpp            0.12.14 2017-11-23 CRAN (R 3.4.3)
 RevoUtils       10.0.7  2018-01-02 local         
 RevoUtilsMath * 10.0.1  2017-09-19 local         
 rmarkdown       1.8     2017-11-17 CRAN (R 3.4.3)
 rprojroot       1.3-1   2017-12-18 CRAN (R 3.4.3)
 stats         * 3.4.3   2018-01-10 local         
 stringi         1.1.6   2017-11-17 CRAN (R 3.4.2)
 stringr         1.2.0   2017-02-18 CRAN (R 3.4.3)
 tools           3.4.3   2018-01-10 local         
 utils         * 3.4.3   2018-01-10 local         
 withr           2.1.1   2017-12-19 CRAN (R 3.4.3)
 yaml            2.1.16  2017-12-12 CRAN (R 3.4.3)
gluque commented 6 years ago

Hi @nick-youngblut,

The problem is related to the use of packrat inside an RStudio project. To solve it, just include Revoutils in the list of packages that packrat should load from the user library before entering into the packrat mode. You can do this using the packrat options panel. Check the figure below.

screen shot 2018-06-19 at 10 44 41

nick-youngblut commented 6 years ago

Thanks @gluque for the help!

richcalaway commented 5 years ago

Thanks for the solution, @gluque!

DavidPatShuiFong commented 4 years ago

A similar problems occurs with renv

renv does not support external packages, but does support external.libraries.

In my case, placing the following line in .Rprofile :

renv::settings$external.libraries("C:\\Program Files\\Microsoft\\R Open\\R-3.5.3\\library")

before the call to source("renv/activate.R") 'solved' the error message:

During startup - Warning messages:
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘RevoUtils’
2: package ‘RevoUtils’ in options("defaultPackages") was not found