-
Notifications
You must be signed in to change notification settings - Fork 7
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
No support for packages without archives #7
Comments
In case you've missed that @goldingn |
Hi @MarcinKosinski, TL;DR: I can't replicate this error in Using versions::install.versions('assertthat', versions = '0.1')
Which is the expected behaviour (as I'm sure you know It looks like something changed between our two attempts though, since I get: versions::available.versions('assertthat')
Given it's an old package, I suspect nothing much has changed on MRAN (though there could have been a temporary blip during their snapshot-taking?). I had suspected this relates to issue #5 which I fixed in version 0.2 (pushed to GitHub and CRAN a couple of weeks ago), but using 0.1 I get a different error message: versions::install.versions('assertthat', versions = '0.1')
Which version are you using and do you still get the error? |
I am using version > library(versions)
> devtools::session_info()
Session info --------------------------------------------------------------------------------------------------------
setting value
version R version 3.2.2 (2015-08-14)
system x86_64, linux-gnu
ui RStudio (0.99.879)
language English
collate pl_PL.UTF-8
tz <NA>
date 2016-02-29
Packages ------------------------------------------------------------------------------------------------------------
package * version date source
archivist * 2.0.1 2016-02-24 CRAN (R 3.2.2)
assertthat 0.1 2013-12-06 CRAN (R 3.2.2)
bitops 1.0-6 2013-08-17 CRAN (R 3.2.0)
colorspace 1.2-6 2015-03-11 CRAN (R 3.2.2)
DBI 0.3.1 2014-09-24 CRAN (R 3.2.2)
devtools 1.9.1 2015-09-11 url (/@)
digest 0.6.9 2016-01-08 CRAN (R 3.2.2)
dplyr * 0.4.3 2015-09-01 CRAN (R 3.2.2)
ggplot2 * 2.0.0 2015-12-18 CRAN (R 3.2.2)
ggthemes * 3.0.2 2016-02-26 CRAN (R 3.2.2)
gtable 0.2.0 2016-02-26 CRAN (R 3.2.2)
httr 1.1.0 2016-01-28 CRAN (R 3.2.2)
lubridate 1.5.0 2015-12-03 CRAN (R 3.2.2)
magrittr 1.5 2014-11-22 CRAN (R 3.2.0)
memoise 1.0.0 2016-01-29 CRAN (R 3.2.2)
munsell 0.4.3 2016-02-13 CRAN (R 3.2.2)
plyr 1.8.3 2015-06-12 CRAN (R 3.2.1)
R6 2.1.2 2016-01-26 CRAN (R 3.2.2)
Rcpp 0.12.3 2016-01-10 CRAN (R 3.2.2)
RCurl 1.95-4.7 2015-06-30 CRAN (R 3.2.1)
RSQLite 1.0.0 2014-10-25 CRAN (R 3.2.1)
scales 0.4.0 2016-02-26 CRAN (R 3.2.2)
stringi 1.0-1 2015-10-22 CRAN (R 3.2.1)
stringr 1.0.0 2015-04-30 CRAN (R 3.2.0)
survival * 2.38-3 2015-07-02 CRAN (R 3.2.1)
survminer * 0.2.0.9002 2016-02-28 local
versions * 0.2 2016-02-17 CRAN (R 3.2.2)
> versions::install.versions('assertthat', versions = '0.1')
Error in if (!df$available[idx]) { :
missing value where TRUE/FALSE needed
> ?versions::install.versions
> getOption("repos")
CRAN
"https://cran.rstudio.com/"
attr(,"RStudio")
[1] TRUE |
Hmmm, weird. I also have: getOption("repos")
It's hard for me to tell without a failing example, but looks like this all boils down to an error in the web-scraping* done in the unexported I have a hunch it may be related to your unset time zone - what does Could you also try re-running your code in a fresh R session in case it's an interaction with one of the other packages you have loaded? * |
My session info, FYI: devtools::session_info()
library(versions)
devtools::session_info()
|
I Have tried this and got an error on 2 various machines: Windows and ubuntu. Every time one uses regex to parse HTML, a small panda in china cries. I'll keeep checking the time zone in the evening. Marcin Kosinski Dnia 29.02.2016 o godz. 01:32 Nick Golding notifications@github.com napisał(a):
|
> install.packages('versions')
Installing package into ‘C:/Users/Marcin/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/versions_0.2.zip'
Content type 'application/zip' length 24737 bytes (24 KB)
downloaded 24 KB
package ‘versions’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Marcin\AppData\Local\Temp\RtmpOUi9Bc\downloaded_packages
> library(versions)
> devtools::install_version(package = 'assertthat', version = '0.1')
Installing package into ‘C:/Users/Marcin/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/assertthat_0.1.zip'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'http://cran.rstudio.com/src/contrib/assertthat_0.1.zip'
In addition: Warning message:
In download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'http://cran.rstudio.com/src/contrib/assertthat_0.1.zip': HTTP status was '404 Not Found'
Warning in download.packages(pkgs, destdir = tmpd, available = available, :
download of package ‘assertthat’ failed
> Sys.Date()
[1] "2016-03-01"
> as.POSIXct(Sys.Date())
[1] "2016-03-01 01:00:00 CET"
> Sys.time()
[1] "2016-03-01 23:47:44 CET" |
So devtools is failing now too? |
Yes, on my WINDOWS it does not work for any of devtools or versions > install.packages('versions')
Installing package into ‘C:/Users/Marcin/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/versions_0.2.zip
'
Content type 'application/zip' length 24737 bytes (24 KB)
downloaded 24 KB
package ‘versions’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Marcin\AppData\Local\Temp\Rtmp61TbX4\downloaded_packages
> library(versions)
> versions::install.versions(pkg = 'assertthat', versions = '0.1')
Error in if (!df$available[idx]) { :
missing value where TRUE/FALSE needed
>
> devtools::install_version('assertthat', '0.1')
Installing package into ‘C:/Users/Marcin/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/assertthat_0.1.zip'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'http://cran.rstudio.com/src/contrib/assertthat_0.1.zip'
In addition: Warning message:
In download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'http://cran.rstudio.com/src/contrib/assertthat_0.1.zip':
HTTP status was '404 Not Found'
Warning in download.packages(pkgs, destdir = tmpd, available = available, :
download of package ‘assertthat’ failed Under ubuntu it works only for devtools 2016-03-01 23:53 GMT+01:00 Nick Golding notifications@github.com:
|
OK got it. |
I have an ubuntu machine in the UK, running on a similar timezone to you and the same version of R. I installed versions::install.versions(pkg = 'assertthat', versions = '0.1')
devtools::session_info()
|
@MarcinKosinski, I now suspect (though this is still guesswork) that this may be an encoding issue and that I've created a new branch with the encoding set as UTF-8. You should be able to install it with: devtools::install_github('goldingn/versions@encoding_experiments') You can make sure you have the right one installed by looking the versions:::url.lines
I then still get the expected response on my machines: versions::install.versions(pkgs = 'assertthat', versions = '0.1')
Would you mind trying this on your ubuntu box? Sorry I still can't replicate this error at my end |
Ok I'll Try to use that. Marcin Kosinski Dnia 02.03.2016 o godz. 01:27 Nick Golding notifications@github.com napisał(a):
|
Closing this as I can't replicate and it seems non urgent. Let me know if you'd like me to repoen it though! |
Yes, I think I used different package. |
Hello,
The problem occurs in the function |
Ah, that's really helpful, thanks! I'll try to work up a failing example and a fix |
@goldingn Hello. FYI, I firstly observed the NA's generated by
|
Thanks @stla, that makes a lot of sense ! Would you mind confirming that it works for you on Windows? You can do: |
Hello @goldingn. Sorry the installation does not work for me:
|
@goldingn I've managed to install by downloading the zip. But |
No sorry in fact the installation has not worked... I still have the previous version. |
OK, thanks. That's strange, that code works fine for me to install it, and I just tried installing it on a colleague's Windows machine and had no problems. It looks like it downloads fine, but then loses track of the tempfile. Could you try this maybe ?: install.packages('remotes')
remotes::install_github('goldingn/versions@set_locale') Otherwise, if you have more info on why your installation from zip failed, I could take a look at that. |
devtools
devtools::install_version(package = 'assertthat', version = '0.1')
can easily download assertthat package from it's only version whereversions::install.versions('assertthat', versions = '0.1')
gives warningprobably due to the
NA
values in result of thisIs this a bug or a feature?
The text was updated successfully, but these errors were encountered: