Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version of ggplot2, new problems #255

Closed
pbiecek opened this issue Feb 25, 2016 · 22 comments
Closed

New version of ggplot2, new problems #255

pbiecek opened this issue Feb 25, 2016 · 22 comments
Labels

Comments

@pbiecek
Copy link
Owner

pbiecek commented Feb 25, 2016

Hi,

This is an automated email to let you know about the upcoming release
of ggplot2, which will be submitted to CRAN on Feb 26 (tomorrow!).
I'll also be updating gtable and scales at the same time. To check for
potential problems, I ran R CMD check on your package archivist
(2.0.1).

I found: 1 error | 0 warnings | 0 notes.

checking examples ... ERROR
Running examples in ‘archivist-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: aread
> ### Title: Read Artifacts Given as md5hashes from the Repository
> ### Aliases: aread
>
> ### ** Examples
>
> # read the object from local directory
> setLocalRepo(system.file("graphGallery", package = "archivist"))
> pl <- aread("600bda83cb840947976bd1ce3a11879d")
> # plot it
> pl
Error in FUN(X[[i]], ...) : attempt to apply non-function
Calls: <Anonymous> -> print.ggplot -> ggplot_build -> lapply -> FUN
Execution halted

If I got an ERROR because I couldn't install your package (or one of
it's dependencies), my apologies. Unfortunately I don't have the time
to diagnose installation failures so you'll need to run the check
yourself.

Otherwise, please submit an updated package to CRAN as soon as
possible. The ERRORs and WARNINGs might not be caused by the update to
ggplot2, but it really makes life easier (for both me and CRAN) if you
also fix any other problems that may have accumulated over time.
Please also try to minimise the NOTEs. It's not essential you do this,
but the fewer the false positives the more likely we are to detect a
real problem with your package.

To get the development version of ggplot2 so you can run the checks
yourself, you can run:

# install.packages("devtools")
devtools::install_github("hadley/ggplot2")

To see what's changed visit
https://github.com/hadley/ggplot2/blob/master/NEWS.md.

If you have any questions about this email, please feel free to
respond directly.

Regards,

@pbiecek
Copy link
Owner Author

pbiecek commented Feb 25, 2016

The problem was introduced with this commit

tidyverse/ggplot2@6bce655

yet again the structure of ggplot2 obeject has changed

@pbiecek
Copy link
Owner Author

pbiecek commented Feb 26, 2016

In the commit '6bce655fde4841ce574df35c68cdea57330aaf5e'
there was a change in structure of ggplot2 object

  • layer_data <- lapply(layers, function(y) y$data)
  • layer_data <- lapply(layers, function(y) y$layer_data(plot$data))

For sure there was a reason for that,
but such changes breaks the possibility of plotting older objects.

It will be much better to as a check there, and if the y objects was created with older version of ggplot2 then the older code for plotting can be used.

It looks like Hadley will not support previous structures of ggplot2 objects. We need fast fix for the article. Again the code in article will not work with new ggplot2

@MarcinKosinski
Copy link
Collaborator

So if new version of ggplot appears, then we'll need to recreate objects in graphGallery in the package and gallery on the package repository root.

@pbiecek
Copy link
Owner Author

pbiecek commented Feb 26, 2016

Unfortunately it's not enough, since examples in the paper will not work will new version of ggplot2 (no function will plot the ggplot2 objects that are already archived.

I am considering a new package ggplotplot that will have only print/plot function, but will be able to plot ggplot objects created with older version of ggplot2.

Gosh, what a bad luck, two new versions of ggplot2 and two large changes in the structure of ggplot2 object.

@pbiecek
Copy link
Owner Author

pbiecek commented Feb 26, 2016

and the new version of ggplot2 will be on CRAN today

@MarcinKosinski
Copy link
Collaborator

2016-02-26 17:48 GMT+01:00 Przemysław Biecek notifications@github.com:

Unfortunately it's not enough, since examples in the paper will not work
will new version of ggplot2 (no function will plot the ggplot2 objects that
are already archived.

Which examples? So I suggest to recreate those objects while recreating
graphGallery. The error that I see that the opening message of this issue
crashes because of local archivist-build-in-graphGallery repo. In the paper
we also included examples with pbiecek/graphGallery and that's all?

I am considering a new package ggplotplot that will have only print/plot
function, but will be able to plot ggplot objects created with older
version of ggplot2.

Gosh, what a bad luck, two new versions of ggplot2 and two large changes
in the structure of ggplot2 object.


Reply to this email directly or view it on GitHub
#255 (comment).

@MarcinKosinski
Copy link
Collaborator

We could provide subHook function to change md5hashes.
We could delete objects that are used in the paper from
pbiecek/graphGallery, create new one with the same hooks specified by
subHooks function?

2016-02-26 18:27 GMT+01:00 Marcin Kosiński m.p.kosinski@gmail.com:

2016-02-26 17:48 GMT+01:00 Przemysław Biecek notifications@github.com:

Unfortunately it's not enough, since examples in the paper will not work
will new version of ggplot2 (no function will plot the ggplot2 objects that
are already archived.

Which examples? So I suggest to recreate those objects while recreating
graphGallery. The error that I see that the opening message of this issue
crashes because of local archivist-build-in-graphGallery repo. In the paper
we also included examples with pbiecek/graphGallery and that's all?

I am considering a new package ggplotplot that will have only print/plot
function, but will be able to plot ggplot objects created with older
version of ggplot2.

Gosh, what a bad luck, two new versions of ggplot2 and two large changes
in the structure of ggplot2 object.


Reply to this email directly or view it on GitHub
#255 (comment).

@pbiecek
Copy link
Owner Author

pbiecek commented Feb 26, 2016

Unfortunately, we are using the digest function to make sure that the
downloaded object has right hash.
So if we replace an object it will be easy to detect.
The problem is that ggplot2 is not backward compatible.

I see these solutions:

  • archive print.ggplot function along with ggplot object, then the function
    can be used to print object
  • create a function that will reinstall ggplot2 package to the version that
    was attached when the object was created
  • create a package with older versions of plot.ggplot function
  • fix the ggplot2 package to make it backward compatibile

what do you think?

2016-02-26 18:28 GMT+01:00 Marcin Kosiński notifications@github.com:

We could provide subHook function to change md5hashes.
We could delete objects that are used in the paper from
pbiecek/graphGallery, create new one with the same hooks specified by
subHooks function?

2016-02-26 18:27 GMT+01:00 Marcin Kosiński m.p.kosinski@gmail.com:

2016-02-26 17:48 GMT+01:00 Przemysław Biecek notifications@github.com:

Unfortunately it's not enough, since examples in the paper will not work
will new version of ggplot2 (no function will plot the ggplot2 objects
that
are already archived.

Which examples? So I suggest to recreate those objects while recreating
graphGallery. The error that I see that the opening message of this issue
crashes because of local archivist-build-in-graphGallery repo. In the
paper
we also included examples with pbiecek/graphGallery and that's all?

I am considering a new package ggplotplot that will have only print/plot
function, but will be able to plot ggplot objects created with older
version of ggplot2.

Gosh, what a bad luck, two new versions of ggplot2 and two large changes
in the structure of ggplot2 object.


Reply to this email directly or view it on GitHub
<#255 (comment)
.


Reply to this email directly or view it on GitHub
#255 (comment).

pozdrawiam serdecznie,
Przemysław Biecek

@MarcinKosinski
Copy link
Collaborator

Second dot with 'ainstall' function using 'versions' package. It'll be easy since we archive sessionInfo :)

Marcin Kosinski

Dnia 26.02.2016 o godz. 19:04 Przemysław Biecek notifications@github.com napisał(a):

Unfortunately, we are using the digest function to make sure that the
downloaded object has right hash.
So if we replace an object it will be easy to detect.
The problem is that ggplot2 is not backward compatible.

I see these solutions:

  • archive print.ggplot function along with ggplot object, then the function
    can be used to print object
  • create a function that will reinstall ggplot2 package to the version that
    was attached when the object was created
  • create a package with older versions of plot.ggplot function
  • fix the ggplot2 package to make it backward compatibile

what do you think?

2016-02-26 18:28 GMT+01:00 Marcin Kosiński notifications@github.com:

We could provide subHook function to change md5hashes.
We could delete objects that are used in the paper from
pbiecek/graphGallery, create new one with the same hooks specified by
subHooks function?

2016-02-26 18:27 GMT+01:00 Marcin Kosiński m.p.kosinski@gmail.com:

2016-02-26 17:48 GMT+01:00 Przemysław Biecek notifications@github.com:

Unfortunately it's not enough, since examples in the paper will not work
will new version of ggplot2 (no function will plot the ggplot2 objects
that
are already archived.

Which examples? So I suggest to recreate those objects while recreating
graphGallery. The error that I see that the opening message of this issue
crashes because of local archivist-build-in-graphGallery repo. In the
paper
we also included examples with pbiecek/graphGallery and that's all?

I am considering a new package ggplotplot that will have only print/plot
function, but will be able to plot ggplot objects created with older
version of ggplot2.

Gosh, what a bad luck, two new versions of ggplot2 and two large changes
in the structure of ggplot2 object.


Reply to this email directly or view it on GitHub
<#255 (comment)
.


Reply to this email directly or view it on GitHub
#255 (comment).

pozdrawiam serdecznie,
Przemysław Biecek

Reply to this email directly or view it on GitHub.

@pbiecek
Copy link
Owner Author

pbiecek commented Feb 26, 2016

Not sure if it's easy

we need to install all packages (e.g. in a separate directory and attach older versions)

install.packages() cannot install older versions

install_version(devtools) can, but it there is an compiled code then R need to be in dev version

but it will be quite nice functionality

@MarcinKosinski
Copy link
Collaborator

I've tried with versions package but there appeared to be a problem with packages without archives
goldingn/versions#7 so maybe we should stick only to devtools package. And we can't provide a cure for packages installed locally.

Retrieve object created with archive-version of ggplot2

install.packages('ggplot2')
library(ggplot2)
devtools::session_info(pkgs = 'ggplot2')

versions: Query and Install Specific Versions of Packages on CRAN

library(versions)

Installs specified versions of R packages hosted on CRAN and provides functions to list available versions and the versions of currently installed packages. These tools can be used to help make R projects and packages more reproducible. 'versions' fits in the narrow gap between the 'devtools' install_version() function and the 'checkpoint' package. devtools::install_version() installs a stated package version from source files stored on the CRAN archives. However CRAN does not store binary versions of packages so Windows users need to have RTools installed and Windows and OSX users get longer installation times. 'checkpoint' uses the Revolution Analytics MRAN server to install packages (from source or binary) as they were available on a given date. It also provides a helpful interface to detect the packages in use in a directory and install all of those packages for a given date. 'checkpoint' doesn't provide install.packages-like functionality however, and that's what 'versions' aims to do, by querying MRAN. As MRAN only goes back to 2014-09-17, 'versions' can't install packages from before this date.

available.versions('ggplot2')
adir <- 'adir'
dir.create(adir)
install.versions('ggplot2', versions = '1.0.1', lib = adir)
library(ggplot2, lib = adir)
devtools::session_info('ggplot2')

arecreate()

library(archivist)
system.file('graphGallery', package = 'archivist') -> archivist.dir
setLocalRepo(archivist.dir)
arecreate.dir <- 'arecreate.dir' 
dir.create('arecreate.dir')

arecreate <- function(md5hash = '600bda83cb840947976bd1ce3a11879d', lib ){

  # probably local installations or GitHub packages
  NOT_CRAN <- which(asession(md5hash)$packages[, '*'] == '*')

  CRAN_PKGS <- grep('CRAN',
                    x = asession(md5hash)$packages[, 'source'])
  GITHUB_PKGS <- grep('Github',
                    x = asession(md5hash)$packages[, 'source'])
  # reinstall CRAN packages
  versions::install.versions( pkgs = asession(md5hash)$packages[setdiff(CRAN_PKGS, NOT_CRAN), 'package'][1],
                               versions = asession(md5hash)$packages[setdiff(CRAN_PKGS, NOT_CRAN), 'version'][1], 
                               lib = lib )
  # extract commits and names from parenthesis
  gsub("[\\(\\)]",
       "", 
       regmatches(asession(md5hash)$packages[GITHUB_PKGS, 'source'],
                  gregexpr("\\(.*?\\)",
                           asession(md5hash)$packages[GITHUB_PKGS, 'source'])
                  )[[1]]
       ) -> 
    # reinstall GitHub packages
  devtools::install_github(GITHUB_NAMES, lib = lib)
}
arecreate('600bda83cb840947976bd1ce3a11879d', lib = arecreate.dir)

@MarcinKosinski
Copy link
Collaborator

Example with devtools install_version ishere:

#251 (comment)

@pbiecek pbiecek added in progress and removed ready labels Mar 3, 2016
pbiecek added a commit that referenced this issue Mar 3, 2016
@pbiecek
Copy link
Owner Author

pbiecek commented Mar 3, 2016

ok, it will not be that easy, since acepack requires fortran for compilation and devtools::install_version will not install binary packages

pbiecek added a commit that referenced this issue Mar 3, 2016
@MarcinKosinski
Copy link
Collaborator

MarcinKosinski commented Mar 3, 2016 via email

pbiecek added a commit that referenced this issue Mar 3, 2016
pbiecek added a commit that referenced this issue Mar 3, 2016
pbiecek added a commit that referenced this issue Mar 3, 2016
@pbiecek
Copy link
Owner Author

pbiecek commented Mar 4, 2016

@MarcinKosinski
These instructions:

  • check for session info
  • restore old ggplot2
  • and plot the ggplot2 object

would you confirm that it works on non OSX system?

asession("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d")

restoreLibs("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d")

aread("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d")

@MarcinKosinski
Copy link
Collaborator

It looks like on my ubuntu it have problem with restoring Hmisc package

> devtools::install_github('pbiecek/archivist')
Downloading GitHub repo pbiecek/archivist@master
Installing archivist
Installing 1 packages: httr
Installing package into/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2’
(aslibis unspecified)
--2016-03-05 18:21:34--  https://cran.rstudio.com/src/contrib/httr_1.1.0.tar.gz
Resolving cran.rstudio.com (cran.rstudio.com)... 54.230.231.114
Connecting to cran.rstudio.com (cran.rstudio.com)|54.230.231.114|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 118882 (116K) [application/x-gzip]
Saving to:/tmp/RtmpwmwAMC/downloaded_packages/httr_1.1.0.tar.gz0K .......... .......... .......... .......... .......... 43%  205K 0s
    50K .......... .......... .......... .......... .......... 86%  227K 0s
   100K .......... ......                                     100% 1013K=0,5s

2016-03-05 18:21:35 (242 KB/s) -/tmp/RtmpwmwAMC/downloaded_packages/httr_1.1.0.tar.gzsaved [118882/118882]

* installing *source* packagehttr...
** packagehttrsuccessfully unpacked and MD5 sums checked
** R
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (httr)

The downloaded source packages are in/tmp/RtmpwmwAMC/downloaded_packages'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL  \
  '/tmp/RtmpwmwAMC/devtools1ede6849502e/pbiecek-archivist-dece4cd'  \
  --library='/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2' --install-tests 

* installing *source* packagearchivist...
** R
** demo
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (archivist)
> library(archivist)
Welcome to archivist (version: 2.0.2).
> asession("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d")
Session info --------------------------------------------------------------------------
 setting  value                       
 version  R version 3.2.2 (2015-08-14)
 system   x86_64, darwin13.4.0        
 ui       RStudio (0.99.441)          
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       Europe/Warsaw               
 date     2016-02-09                  

Packages ------------------------------------------------------------------------------
 package      * version  date       source                         
 acepack        1.3-3.3  2013-05-03 CRAN (R 3.1.0)                 
 archivist    * 1.9.7.2  2016-02-08 CRAN (R 3.2.2)                 
 assertthat     0.1      2013-12-06 CRAN (R 3.1.0)                 
 bitops         1.0-6    2013-08-17 CRAN (R 3.1.0)                 
 car            2.1-1    2015-12-14 CRAN (R 3.2.3)                 
 cluster        2.0.3    2015-07-21 CRAN (R 3.2.2)                 
 colorspace     1.2-6    2015-03-11 CRAN (R 3.1.3)                 
 DBI            0.3.1    2014-09-24 CRAN (R 3.1.1)                 
 devtools       1.9.1    2015-09-11 CRAN (R 3.2.0)                 
 digest         0.6.9    2016-01-08 CRAN (R 3.2.3)                 
 dplyr        * 0.4.3    2015-09-01 CRAN (R 3.2.0)                 
 foreign        0.8-65   2015-07-02 CRAN (R 3.2.2)                 
 Formula        1.2-1    2015-04-07 CRAN (R 3.1.3)                 
 ggplot2        2.0.0    2015-12-16 Github (hadley/ggplot2@11679cd)
 gridExtra    * 2.0.0    2015-07-14 CRAN (R 3.2.0)                 
 gtable         0.1.2    2012-12-05 CRAN (R 3.1.0)                 
 Hmisc          3.17-0   2015-09-21 CRAN (R 3.2.0)                 
 httr           1.0.0    2015-06-25 CRAN (R 3.2.0)                 
 intsvy         1.8      2015-11-30 CRAN (R 3.2.2)                 
 labeling       0.3      2014-08-23 CRAN (R 3.1.1)                 
 lattice        0.20-33  2015-07-14 CRAN (R 3.2.2)                 
 latticeExtra   0.6-26   2013-08-15 CRAN (R 3.1.0)                 
 lazyeval       0.1.10   2015-01-02 CRAN (R 3.1.2)                 
 lme4           1.1-10   2015-10-06 CRAN (R 3.2.2)                 
 lubridate      1.5.0    2015-12-03 CRAN (R 3.2.3)                 
 magrittr       1.5      2014-11-22 CRAN (R 3.1.2)                 
 MASS           7.3-43   2015-07-16 CRAN (R 3.2.2)                 
 Matrix         1.2-2    2015-07-08 CRAN (R 3.2.2)                 
 MatrixModels   0.4-1    2015-08-22 CRAN (R 3.2.0)                 
 memisc         0.97     2015-03-08 CRAN (R 3.1.3)                 
 memoise        0.2.1    2014-04-22 CRAN (R 3.1.0)                 
 mgcv           1.8-7    2015-07-23 CRAN (R 3.2.2)                 
 minqa          1.2.4    2014-10-09 CRAN (R 3.1.1)                 
 munsell        0.4.2    2013-07-11 CRAN (R 3.1.0)                 
 nlme           3.1-121  2015-06-29 CRAN (R 3.2.2)                 
 nloptr         1.0.4    2014-08-04 CRAN (R 3.1.1)                 
 nnet           7.3-10   2015-06-29 CRAN (R 3.2.2)                 
 pbkrtest       0.4-4    2015-12-12 CRAN (R 3.2.3)                 
 plyr           1.8.3    2015-06-12 CRAN (R 3.2.0)                 
 proto          0.3-10   2012-12-22 CRAN (R 3.1.0)                 
 quantreg       5.19     2015-08-31 CRAN (R 3.2.0)                 
 R6             2.1.2    2016-01-26 CRAN (R 3.2.3)                 
 RColorBrewer   1.1-2    2014-12-07 CRAN (R 3.1.2)                 
 Rcpp           0.12.3   2016-01-10 CRAN (R 3.2.3)                 
 RCurl          1.95-4.7 2015-06-30 CRAN (R 3.2.0)                 
 reshape        0.8.5    2014-04-23 CRAN (R 3.1.0)                 
 rpart          4.1-10   2015-06-29 CRAN (R 3.2.2)                 
 RSQLite        1.0.0    2014-10-25 CRAN (R 3.1.2)                 
 scales         0.3.0    2015-08-25 CRAN (R 3.2.0)                 
 SparseM        1.7      2015-08-15 CRAN (R 3.2.0)                 
 stringi        1.0-1    2015-10-22 CRAN (R 3.2.0)                 
 stringr        1.0.0    2015-04-30 CRAN (R 3.2.0)                 
 survival       2.38-3   2015-07-02 CRAN (R 3.2.2)                 
> 
> restoreLibs("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d")
Downloading GitHub repo hadley/ggplot2@11679cd
Installing ggplot2
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL  \
  '/tmp/RtmpwmwAMC/devtools1ede76d706ed/hadley-ggplot2-11679cd'  \
  --library='/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2' --install-tests 

* installing *source* packageggplot2...
** R
** data
*** moving datasets to lazyload DB
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (ggplot2)
Package gridExtra will not be reinstalled.

Downloading package from url: https://cran.rstudio.com//src/contrib/Archive/gtable/gtable_0.1.2.tar.gz
Installing gtable
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL  \
  '/tmp/RtmpwmwAMC/devtools1ede6c05d7ae/gtable'  \
  --library='/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2' --install-tests 

* installing *source* packagegtable...
** packagegtablesuccessfully unpacked and MD5 sums checked
** R
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (gtable)
Downloading package from url: https://cran.rstudio.com//src/contrib/Archive/Hmisc/Hmisc_3.17-0.tar.gz
Installing Hmisc
Installing 2 packages: ggplot2, gtable
Installing packages into/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2’
(aslibis unspecified)
--2016-03-05 18:22:06--  https://cran.rstudio.com/src/contrib/ggplot2_2.1.0.tar.gz
Resolving cran.rstudio.com (cran.rstudio.com)... 54.230.231.114
Connecting to cran.rstudio.com (cran.rstudio.com)|54.230.231.114|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1571788 (1,5M) [application/x-gzip]
Saving to:/tmp/RtmpwmwAMC/downloaded_packages/ggplot2_2.1.0.tar.gz0K .......... .......... .......... .......... ..........  3% 67,4K 22s
    50K .......... .......... .......... .......... ..........  6% 1,53M 11s
   100K .......... .......... .......... .......... ..........  9%  566K 8s
   150K .......... .......... .......... .......... .......... 13% 1,05M 6s
   200K .......... .......... .......... .......... .......... 16%  869K 5s
   250K .......... .......... .......... .......... .......... 19%  712K 4s
   300K .......... .......... .......... .......... .......... 22% 1,52M 4s
   350K .......... .......... .......... .......... .......... 26% 1,21M 3s
   400K .......... .......... .......... .......... .......... 29% 2,81M 3s
   450K .......... .......... .......... .......... .......... 32%  768K 2s
   500K .......... .......... .......... .......... .......... 35% 1,38M 2s
   550K .......... .......... .......... .......... .......... 39% 1,78M 2s
   600K .......... .......... .......... .......... .......... 42% 2,39M 2s
   650K .......... .......... .......... .......... .......... 45% 1,10M 2s
   700K .......... .......... .......... .......... .......... 48% 1,55M 1s
   750K .......... .......... .......... .......... .......... 52% 1,35M 1s
   800K .......... .......... .......... .......... .......... 55% 1,75M 1s
   850K .......... .......... .......... .......... .......... 58% 1,52M 1s
   900K .......... .......... .......... .......... .......... 61% 3,52M 1s
   950K .......... .......... .......... .......... .......... 65% 1,26M 1s
  1000K .......... .......... .......... .......... .......... 68% 1,66M 1s
  1050K .......... .......... .......... .......... .......... 71% 1,59M 1s
  1100K .......... .......... .......... .......... .......... 74% 2,08M 1s
  1150K .......... .......... .......... .......... .......... 78% 1,21M 0s
  1200K .......... .......... .......... .......... .......... 81% 1,77M 0s
  1250K .......... .......... .......... .......... .......... 84% 2,15M 0s
  1300K .......... .......... .......... .......... .......... 87% 1,52M 0s
  1350K .......... .......... .......... .......... .......... 91% 1,68M 0s
  1400K .......... .......... .......... .......... .......... 94% 1,83M 0s
  1450K .......... .......... .......... .......... .......... 97% 1,79M 0s
  1500K .......... .......... .......... ....                 100% 2,00M=1,8s

2016-03-05 18:22:08 (850 KB/s) -/tmp/RtmpwmwAMC/downloaded_packages/ggplot2_2.1.0.tar.gzsaved [1571788/1571788]

--2016-03-05 18:22:08--  https://cran.rstudio.com/src/contrib/gtable_0.2.0.tar.gz
Resolving cran.rstudio.com (cran.rstudio.com)... 54.230.231.114
Connecting to cran.rstudio.com (cran.rstudio.com)|54.230.231.114|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24157 (24K) [application/x-gzip]
Saving to:/tmp/RtmpwmwAMC/downloaded_packages/gtable_0.2.0.tar.gz0K .......... .......... ...                             100% 35,0M=0,001s

2016-03-05 18:22:08 (35,0 MB/s) -/tmp/RtmpwmwAMC/downloaded_packages/gtable_0.2.0.tar.gzsaved [24157/24157]

* installing *source* packagegtable...
** packagegtablesuccessfully unpacked and MD5 sums checked
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (gtable)
* installing *source* packageggplot2...
** packageggplot2successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (ggplot2)

The downloaded source packages are in/tmp/RtmpwmwAMC/downloaded_packages'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL  \
  '/tmp/RtmpwmwAMC/devtools1ede2336d0a5/Hmisc'  \
  --library='/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2' --install-tests 

* installing *source* packageHmisc...
** packageHmiscsuccessfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c Hmisc.c -o Hmisc.o
gfortran   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4  -c cidxcn.f -o cidxcn.o
gfortran   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4  -c cidxcp.f -o cidxcp.o
gfortran   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4  -c hoeffd.f -o hoeffd.o
gfortran   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4  -c jacklins.f -o jacklins.o
gfortran   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4  -c largrec.f -o largrec.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c mChoice.c -o mChoice.o
gfortran   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4  -c maxempr.f -o maxempr.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c nstr.c -o nstr.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ranksort.c -o ranksort.o
gfortran   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4  -c rcorr.f -o rcorr.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c string_box.c -o string_box.o
gfortran   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4  -c wclosest.f -o wclosest.o
gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o Hmisc.so Hmisc.o cidxcn.o cidxcp.o hoeffd.o jacklins.o largrec.o mChoice.o maxempr.o nstr.o ranksort.o rcorr.o string_box.o wclosest.o -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
installing to /home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2/Hmisc/libs
** R
** inst
** tests
** preparing package for lazy loading
Warning: replacing previous import byggplot2::unitwhen loadingHmiscWarning: replacing previous import byggplot2::arrowwhen loadingHmiscWarning: replacing previous import byscales::alphawhen loadingHmiscError in eval(expr, envir, enclos) : could not find function "eval"
Error : unable to load R code in packageHmiscERROR: lazy loading failed for packageHmisc* removing/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2/Hmisc* restoring previous/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2/HmiscDownloading package from url: https://cran.rstudio.com//src/contrib/Archive/httr/httr_1.0.0.tar.gz
Installing httr
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL  \
  '/tmp/RtmpwmwAMC/devtools1ede1ac027a9/httr'  \
  --library='/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2' --install-tests 

* installing *source* packagehttr...
** packagehttrsuccessfully unpacked and MD5 sums checked
** R
** demo
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (httr)
Error in desc$Priority : $ operator is invalid for atomic vectors
In addition: Warning message:
In packageDescription(pkg) : no package 'intsvy' was found
> 
> aread("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d")
Error in FUN(X[[i]], ...) : attempt to apply non-function
> 

@pbiecek
Copy link
Owner Author

pbiecek commented Mar 5, 2016

I see that Hmisc tries to install ggplot2 again and here ggplot2 is again
in version 2.1.0
So packages have to be installed without dependencies

And the problem with intsvy is quite interestig
Will check it

2016-03-05 18:23 GMT+01:00 Marcin Kosiński notifications@github.com:

It looks like on my ubuntu it have problem with restoring Hmisc package

devtools::install_github('pbiecek/archivist')Downloading GitHub repo pbiecek/archivist@masterInstalling archivistInstalling 1 packages: httrInstalling package into ‘/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)--2016-03-05 18:21:34-- https://cran.rstudio.com/src/contrib/httr_1.1.0.tar.gzResolving cran.rstudio.com (cran.rstudio.com)... 54.230.231.114Connecting to cran.rstudio.com (cran.rstudio.com)|54.230.231.114|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 118882 (116K) [application/x-gzip]Saving to: ‘/tmp/RtmpwmwAMC/downloaded_packages/httr_1.1.0.tar.gz’

 0K .......... .......... .......... .......... .......... 43%  205K 0s
50K .......... .......... .......... .......... .......... 86%  227K 0s

100K .......... ...... 100% 1013K=0,5s
2016-03-05 18:21:35 (242 KB/s) - ‘/tmp/RtmpwmwAMC/downloaded_packages/httr_1.1.0.tar.gz’ saved [118882/118882]

  • installing source package ‘httr’ ...* package ‘httr’ successfully unpacked and MD5 sums checked* R** demo** inst** preparing package for lazy loading** help*** installing help indices** building package indices** installing vignettes** testing if installed package can be loaded* DONE (httr)
    The downloaded source packages are in
    ‘/tmp/RtmpwmwAMC/downloaded_packages’'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL
    '/tmp/RtmpwmwAMC/devtools1ede6849502e/pbiecek-archivist-dece4cd'
    --library='/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2' --install-tests

  • installing source package ‘archivist’ ...* R* demo** inst** tests** preparing package for lazy loading** help*** installing help indices** building package indices** testing if installed package can be loaded* DONE (archivist)> library(archivist)Welcome to archivist (version: 2.0.2).> asession("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d")Session info --------------------------------------------------------------------------
    setting value
    version R version 3.2.2 (2015-08-14)
    system x86_64, darwin13.4.0
    ui RStudio (0.99.441)
    language (EN)
    collate en_US.UTF-8
    tz Europe/Warsaw
    date 2016-02-09
    Packages ------------------------------------------------------------------------------
    package * version date source
    acepack 1.3-3.3 2013-05-03 CRAN (R 3.1.0)
    archivist * 1.9.7.2 2016-02-08 CRAN (R 3.2.2)
    assertthat 0.1 2013-12-06 CRAN (R 3.1.0)
    bitops 1.0-6 2013-08-17 CRAN (R 3.1.0)
    car 2.1-1 2015-12-14 CRAN (R 3.2.3)
    cluster 2.0.3 2015-07-21 CRAN (R 3.2.2)
    colorspace 1.2-6 2015-03-11 CRAN (R 3.1.3)
    DBI 0.3.1 2014-09-24 CRAN (R 3.1.1)
    devtools 1.9.1 2015-09-11 CRAN (R 3.2.0)
    digest 0.6.9 2016-01-08 CRAN (R 3.2.3)
    dplyr * 0.4.3 2015-09-01 CRAN (R 3.2.0)
    foreign 0.8-65 2015-07-02 CRAN (R 3.2.2)
    Formula 1.2-1 2015-04-07 CRAN (R 3.1.3)
    ggplot2 2.0.0 2015-12-16 Github (tidyverse/ggplot2@11679cd)
    gridExtra * 2.0.0 2015-07-14 CRAN (R 3.2.0)
    gtable 0.1.2 2012-12-05 CRAN (R 3.1.0)
    Hmisc 3.17-0 2015-09-21 CRAN (R 3.2.0)
    httr 1.0.0 2015-06-25 CRAN (R 3.2.0)
    intsvy 1.8 2015-11-30 CRAN (R 3.2.2)
    labeling 0.3 2014-08-23 CRAN (R 3.1.1)
    lattice 0.20-33 2015-07-14 CRAN (R 3.2.2)
    latticeExtra 0.6-26 2013-08-15 CRAN (R 3.1.0)
    lazyeval 0.1.10 2015-01-02 CRAN (R 3.1.2)
    lme4 1.1-10 2015-10-06 CRAN (R 3.2.2)
    lubridate 1.5.0 2015-12-03 CRAN (R 3.2.3)
    magrittr 1.5 2014-11-22 CRAN (R 3.1.2)
    MASS 7.3-43 2015-07-16 CRAN (R 3.2.2)
    Matrix 1.2-2 2015-07-08 CRAN (R 3.2.2)
    MatrixModels 0.4-1 2015-08-22 CRAN (R 3.2.0)
    memisc 0.97 2015-03-08 CRAN (R 3.1.3)
    memoise 0.2.1 2014-04-22 CRAN (R 3.1.0)
    mgcv 1.8-7 2015-07-23 CRAN (R 3.2.2)
    minqa 1.2.4 2014-10-09 CRAN (R 3.1.1)
    munsell 0.4.2 2013-07-11 CRAN (R 3.1.0)
    nlme 3.1-121 2015-06-29 CRAN (R 3.2.2)
    nloptr 1.0.4 2014-08-04 CRAN (R 3.1.1)
    nnet 7.3-10 2015-06-29 CRAN (R 3.2.2)
    pbkrtest 0.4-4 2015-12-12 CRAN (R 3.2.3)
    plyr 1.8.3 2015-06-12 CRAN (R 3.2.0)
    proto 0.3-10 2012-12-22 CRAN (R 3.1.0)
    quantreg 5.19 2015-08-31 CRAN (R 3.2.0)
    R6 2.1.2 2016-01-26 CRAN (R 3.2.3)
    RColorBrewer 1.1-2 2014-12-07 CRAN (R 3.1.2)
    Rcpp 0.12.3 2016-01-10 CRAN (R 3.2.3)
    RCurl 1.95-4.7 2015-06-30 CRAN (R 3.2.0)
    reshape 0.8.5 2014-04-23 CRAN (R 3.1.0)
    rpart 4.1-10 2015-06-29 CRAN (R 3.2.2)
    RSQLite 1.0.0 2014-10-25 CRAN (R 3.1.2)
    scales 0.3.0 2015-08-25 CRAN (R 3.2.0)
    SparseM 1.7 2015-08-15 CRAN (R 3.2.0)
    stringi 1.0-1 2015-10-22 CRAN (R 3.2.0)
    stringr 1.0.0 2015-04-30 CRAN (R 3.2.0)
    survival 2.38-3 2015-07-02 CRAN (R 3.2.2) > > restoreLibs("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d")Downloading GitHub repo hadley/ggplot2@11679cdInstalling ggplot2'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL
    '/tmp/RtmpwmwAMC/devtools1ede76d706ed/hadley-ggplot2-11679cd'
    --library='/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2' --install-tests

  • installing source package ‘ggplot2’ ...* R* data*** moving datasets to lazyload DB** inst** tests** preparing package for lazy loading** help*** installing help indices** building package indices** installing vignettes** testing if installed package can be loaded* DONE (ggplot2)Package gridExtra will not be reinstalled.
    Downloading package from url: https://cran.rstudio.com//src/contrib/Archive/gtable/gtable_0.1.2.tar.gzInstalling gtable'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL
    '/tmp/RtmpwmwAMC/devtools1ede6c05d7ae/gtable'
    --library='/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2' --install-tests

  • installing source package ‘gtable’ ...* package ‘gtable’ successfully unpacked and MD5 sums checked* R** inst** tests** preparing package for lazy loading** help*** installing help indices** building package indices** testing if installed package can be loaded* DONE (gtable)Downloading package from url: https://cran.rstudio.com//src/contrib/Archive/Hmisc/Hmisc_3.17-0.tar.gzInstalling HmiscInstalling 2 packages: ggplot2, gtableInstalling packages into ‘/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2’
    (as ‘lib’ is unspecified)--2016-03-05 18:22:06-- https://cran.rstudio.com/src/contrib/ggplot2_2.1.0.tar.gzResolving cran.rstudio.com (cran.rstudio.com)... 54.230.231.114Connecting to cran.rstudio.com (cran.rstudio.com)|54.230.231.114|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 1571788 (1,5M) [application/x-gzip]Saving to: ‘/tmp/RtmpwmwAMC/downloaded_packages/ggplot2_2.1.0.tar.gz’

    0K .......... .......... .......... .......... .......... 3% 67,4K 22s
    50K .......... .......... .......... .......... .......... 6% 1,53M 11s
    100K .......... .......... .......... .......... .......... 9% 566K 8s
    150K .......... .......... .......... .......... .......... 13% 1,05M 6s
    200K .......... .......... .......... .......... .......... 16% 869K 5s
    250K .......... .......... .......... .......... .......... 19% 712K 4s
    300K .......... .......... .......... .......... .......... 22% 1,52M 4s
    350K .......... .......... .......... .......... .......... 26% 1,21M 3s
    400K .......... .......... .......... .......... .......... 29% 2,81M 3s
    450K .......... .......... .......... .......... .......... 32% 768K 2s
    500K .......... .......... .......... .......... .......... 35% 1,38M 2s
    550K .......... .......... .......... .......... .......... 39% 1,78M 2s
    600K .......... .......... .......... .......... .......... 42% 2,39M 2s
    650K .......... .......... .......... .......... .......... 45% 1,10M 2s
    700K .......... .......... .......... .......... .......... 48% 1,55M 1s
    750K .......... .......... .......... .......... .......... 52% 1,35M 1s
    800K .......... .......... .......... .......... .......... 55% 1,75M 1s
    850K .......... .......... .......... .......... .......... 58% 1,52M 1s
    900K .......... .......... .......... .......... .......... 61% 3,52M 1s
    950K .......... .......... .......... .......... .......... 65% 1,26M 1s
    1000K .......... .......... .......... .......... .......... 68% 1,66M 1s
    1050K .......... .......... .......... .......... .......... 71% 1,59M 1s
    1100K .......... .......... .......... .......... .......... 74% 2,08M 1s
    1150K .......... .......... .......... .......... .......... 78% 1,21M 0s
    1200K .......... .......... .......... .......... .......... 81% 1,77M 0s
    1250K .......... .......... .......... .......... .......... 84% 2,15M 0s
    1300K .......... .......... .......... .......... .......... 87% 1,52M 0s
    1350K .......... .......... .......... .......... .......... 91% 1,68M 0s
    1400K .......... .......... .......... .......... .......... 94% 1,83M 0s
    1450K .......... .......... .......... .......... .......... 97% 1,79M 0s
    1500K .......... .......... .......... .... 100% 2,00M=1,8s
    2016-03-05 18:22:08 (850 KB/s) - ‘/tmp/RtmpwmwAMC/downloaded_packages/ggplot2_2.1.0.tar.gz’ saved [1571788/1571788]
    --2016-03-05 18:22:08-- https://cran.rstudio.com/src/contrib/gtable_0.2.0.tar.gzResolving cran.rstudio.com (cran.rstudio.com)... 54.230.231.114Connecting to cran.rstudio.com (cran.rstudio.com)|54.230.231.114|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 24157 (24K) [application/x-gzip]Saving to: ‘/tmp/RtmpwmwAMC/downloaded_packages/gtable_0.2.0.tar.gz’

    0K .......... .......... ... 100% 35,0M=0,001s
    2016-03-05 18:22:08 (35,0 MB/s) - ‘/tmp/RtmpwmwAMC/downloaded_packages/gtable_0.2.0.tar.gz’ saved [24157/24157]

  • installing source package ‘gtable’ ...* package ‘gtable’ successfully unpacked and MD5 sums checked* R** preparing package for lazy loading** help*** installing help indices** building package indices** testing if installed package can be loaded* DONE (gtable)* installing source package ‘ggplot2’ ...* package ‘ggplot2’ successfully unpacked and MD5 sums checked* R** data*** moving datasets to lazyload DB** inst** preparing package for lazy loading** help*** installing help indices** building package indices** installing vignettes** testing if installed package can be loaded* DONE (ggplot2)
    The downloaded source packages are in
    ‘/tmp/RtmpwmwAMC/downloaded_packages’'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL
    '/tmp/RtmpwmwAMC/devtools1ede2336d0a5/Hmisc'
    --library='/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2' --install-tests

  • installing source package ‘Hmisc’ ...* package ‘Hmisc’ successfully unpacked and MD5 sums checked* libsgcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Hmisc.c -o Hmisc.ogfortran -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -c cidxcn.f -o cidxcn.ogfortran -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -c cidxcp.f -o cidxcp.ogfortran -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -c hoeffd.f -o hoeffd.ogfortran -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -c jacklins.f -o jacklins.ogfortran -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -c largrec.f -o largrec.ogcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c mChoice.c -o mChoice.ogfortran -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -c maxempr.f -o maxempr.ogcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c nstr.c -o nstr.ogcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c ranksort.c -o ranksort.ogfortran -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -c rcorr.f -o rcorr.ogcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c string_box.c -o string_box.ogfortran -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -c wclosest.f -o wclosest.ogcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o Hmisc.so Hmisc.o cidxcn.o cidxcp.o hoeffd.o jacklins.o largrec.o mChoice.o maxempr.o nstr.o ranksort.o rcorr.o string_box.o wclosest.o -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lRinstalling to /home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2/Hmisc/libs** R** inst** tests** preparing package for lazy loadingWarning: replacing previous import by ‘ggplot2::unit’ when loading ‘Hmisc’Warning: replacing previous import by ‘ggplot2::arrow’ when loading ‘Hmisc’Warning: replacing previous import by ‘scales::alpha’ when loading ‘Hmisc’Error in eval(expr, envir, enclos) : could not find function "eval"Error : unable to load R code in package ‘Hmisc’ERROR: lazy loading failed for package ‘Hmisc’* removing ‘/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2/Hmisc’* restoring previous ‘/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2/Hmisc’Downloading package from url: https://cran.rstudio.com//src/contrib/Archive/httr/httr_1.0.0.tar.gzInstalling httr'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL
    '/tmp/RtmpwmwAMC/devtools1ede1ac027a9/httr'
    --library='/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.2' --install-tests

  • installing source package ‘httr’ ...* package ‘httr’ successfully unpacked and MD5 sums checked* R** demo** inst** tests** preparing package for lazy loading** help*** installing help indices** building package indices** installing vignettes** testing if installed package can be loaded* DONE (httr)Error in desc$Priority : $ operator is invalid for atomic vectorsIn addition: Warning message:In packageDescription(pkg) : no package 'intsvy' was found> > aread("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d")Error in FUN(X[[i]], ...) : attempt to apply non-function>


Reply to this email directly or view it on GitHub
#255 (comment).

pozdrawiam serdecznie,
Przemysław Biecek

pbiecek added a commit that referenced this issue Mar 5, 2016
pbiecek added a commit that referenced this issue Mar 5, 2016
@MarcinKosinski
Copy link
Collaborator

I suggest following codewith following tests

library(devtools)
devtools::install_github('pbiecek/archivist')

library(archivist)
asession("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d") -> x
object.size(x) == 13864

.libPaths() -> lib_dirs
tmp_dir <- 'tmp'
dir.create(tmp_dir) 
.libPaths(new=tmp_dir)
restoreLibs("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d")
list.files('tmp') -> pcksg_num

length(pcksg_num) == 25 # or more

aread("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d") -> pl
object.size(pl) == 11552
library(ggplot2, lib.loc = tmp_dir)

Last evaluation gave me

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package calledRcppError: package or namespace load failed forggplot2

and during restoreLibs installation I got

Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of packageSparseMfailed
Installing package into/home/mkosinski/kaggle/kaggle-cardiology/tmp’
(aslibis unspecified)
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  unused argument (reload = FALSE)
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of packagestringifailed
Installing package into/home/mkosinski/kaggle/kaggle-cardiology/tmp’
(aslibis unspecified)
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  unused argument (reload = FALSE)
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of packagestringrfailed

and even though I install Rcpp manually I can not read ggplot2 from new directory

> library('ggplot2', lib.loc = .libPaths()[1])
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package calledcolorspaceError: package or namespace load failed forggplot2> 
> 
> list.files(.libPaths()[1])
 [1] "curl"         "devtools"     "digest"       "foreign"     
 [5] "ggplot2"      "git2r"        "gtable"       "httr"        
 [9] "jsonlite"     "latticeExtra" "lme4"         "MASS"        
[13] "memisc"       "memoise"      "mime"         "munsell"     
[17] "nlme"         "nnet"         "openssl"      "R6"          
[21] "Rcpp"         "RCurl"        "rstudioapi"   "scales"      
[25] "whisker"      "withr" 

I'll check with the original source of library of packages without changing .libPaths()

@MarcinKosinski
Copy link
Collaborator

In the regular directory (withouth changing .libPaths()) it worked! Great job

library(devtools)
devtools::install_github('pbiecek/archivist')

library(archivist)
asession("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d") -> x
object.size(x) == 13864
restoreLibs("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d")
library(ggplot2)    
aread("pbiecek/graphGallery/arepo/600bda83cb840947976bd1ce3a11879d") -> pl
pl
object.size(pl) == 11552

Success

ggplot123

@MarcinKosinski
Copy link
Collaborator

Would you rather like me to add lib.locargument to restoreLibs or you planning to do it by yourself?

@pbiecek
Copy link
Owner Author

pbiecek commented Mar 8, 2016

I will not manage to do this in this week,
so if you can take care about this it will be great.

2016-03-09 0:12 GMT+01:00 Marcin Kosiński notifications@github.com:

Would you rather like me to add lib.locargument to restoreLibs or you
planning to do it by yourself?


Reply to this email directly or view it on GitHub
#255 (comment).

pozdrawiam serdecznie,
Przemysław Biecek

@MarcinKosinski
Copy link
Collaborator

I've added lib.loc to restoreLibs - sory for delay
a23d053

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants