missing package

81 views
Skip to first unread message

Nathan Pace

unread,
Jul 29, 2015, 6:42:34 PM7/29/15
to Revolution R Open
I have installed RRO 3.2.1.

I need to use a package (ggExtra) with update 2015-07-13.

Running RRO, I installed ggExtra.

In my Rmd file, I set

library(checkpoint)
setSnapshot('2015-07-20')

I checked that ggExtra was in MRAN at that date.

Yet:

> library(ggExtra)
Error in library(ggExtra) : there is no package called ‘ggExtra’
>


Unable to debug this problem.

Josée Martens

unread,
Jul 29, 2015, 6:51:39 PM7/29/15
to Revolution R Open, nlpa...@gmail.com
Hello Nathan,

Perhaps someone will weigh in with a better answer, but I believe you should use:

library(checkpoint) checkpoint("2015-07-20")

Let me know if that works for you. If not, I'll investigate further. 
Josée Martens

Nathan Pace

unread,
Jul 29, 2015, 8:16:28 PM7/29/15
to Revolution R Open, nlpa...@gmail.com

I actually did it first with the checkpoint function.


I just ran it again.


> Revo.version

         _  

major    3  

minor    2.1

build id 45 


> library(checkpoint)

> getOption('repos')

                                                     CRAN 

"http://mran.revolutionanalytics.com/snapshot/2015-07-20

> checkpoint('2015-07-20')

Scanning for packages used in this project

  |====================================================================| 100%

- Discovered 11 packages

Installing packages used in this project 

 - Installing ‘RODBC’

Package which is only available in source form, and may need

  compilation of C/C++/Fortran: ‘RODBC’

Do you want to attempt to install these from sources?

y/n: n

checkpoint process complete

---

Warning message:

In value[[3L]](cond) : Unable to reach MRAN: cannot open the connection


> library(ggExtra)

Error in library(ggExtra) : there is no package called ‘ggExtra’


I also get a warning message about not reaching MRAN.


In my Rmd file, there is a call for ggExtra

library(ggExtra).


I ran installed.packages()


ggExtra is not returned.


??


Nathan

Josée Martens

unread,
Jul 29, 2015, 9:52:12 PM7/29/15
to Revolution R Open, nlpa...@gmail.com
Hi Nathan,

Thanks for your report. 

You can install packages from a current version of CRAN, or any MRAN snapshot.  I'd like to be sure you have the latest version of checkpoint, 0.3.10.


Try this to update checkpoint to the current version on CRAN:

install.packages("checkpoint", repos = c(CRAN = "cran.revolutionanalytics.com"))


After updating to the latest, could you please open a clean session of R, then tell me the results of:
library("checkpoint")
sessionInfo()

We'll investigate further on our end as well.

Thank you,
Josée


Josée Martens

unread,
Jul 30, 2015, 10:14:04 AM7/30/15
to Revolution R Open, nlpa...@gmail.com, jo...@revolution-computing.com
Hello Nathan,

Try the following:
library(checkpoint)
# Install ggExtra from latest CRAN mirror 
install.packages("ggExtra", repos = "https://cran.revolutionanalytics.com/")
library(ggExtra)
# Confirm you've loaded version 0.2.0 of that package.
sessionInfo()

Thanks,
Josée

Nathan Pace

unread,
Jul 30, 2015, 1:20:29 PM7/30/15
to Revolution R Open, nlpa...@gmail.com
Closing/Opening my project  and running same checkpoint code with 2015-07-20 has resolved the problem.

ggExtra 0.2.0 is now installed.

Nathan

Josée Martens

unread,
Jul 30, 2015, 1:39:35 PM7/30/15
to Revolution R Open, nlpa...@gmail.com, nlpa...@gmail.com
Glad to hear it has worked itself out, Nathan.

Cheers,
Josée

Reply all
Reply to author
Forward
0 new messages