trevorld / r-argparse

command-line optional and positional argument parser
GNU General Public License v2.0
103 stars 11 forks source link

Argparse 1.0.4 for R 3.3.2 is missing from the mirrors #19

Closed jdavisturak closed 6 years ago

jdavisturak commented 6 years ago
Rscript -e 'options(repos=c(CRAN="http://cran.stat.ucla.edu/"));withCallingHandlers(install.packages(c("argparse")),warning = function(w) stop(w))';
Installing package into '/usr/local/lib/R/site-library'
(as 'lib' is unspecified)
also installing the dependencies 'proto', 'findpython'

trying URL 'http://cran.stat.ucla.edu/src/contrib/proto_1.0.0.tar.gz'
Content type 'application/x-tar' length 541398 bytes (528 KB)
==================================================
downloaded 528 KB

trying URL 'http://cran.stat.ucla.edu/src/contrib/findpython_1.0.2.tar.gz'
Content type 'application/x-tar' length 5175 bytes
==================================================
downloaded 5175 bytes

trying URL 'http://cran.stat.ucla.edu/src/contrib/argparse_1.0.4.tar.gz'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'http://cran.stat.ucla.edu/src/contrib/argparse_1.0.4.tar.gz': HTTP status was '404 Not Found'
Calls: withCallingHandlers ... tryCatchList -> tryCatchOne -> doTryCatch -> download.file
Execution halted

WORKAROUND:

wget https://cran.r-project.org/src/contrib/Archive/argparse/argparse_1.0.4.tar.gz
Rscript -e 'options(repos=c(CRAN="http://cran.stat.ucla.edu/"));withCallingHandlers(install.packages(c("proto", "findpython")),warning = function(w) stop(w))';
R CMD INSTALL argparse_1.0.4.tar.gz
trevorld commented 6 years ago

Not reproducible for me (argparse package (v1.0.7) installs fine using the Berkely mirror, UCLA mirror doesn't show up as a choice of mirror when using install.packages). Maybe you had freakishly unlucky timing while version 1.0.7 (pushed to CRAN last week) percolated through the mirror ecosystem. Version 1.0.4 should be found only in the archives but if the mirror is up to date you should be able to access version 1.0.7.

jdavisturak commented 6 years ago

Was your version of R 3.3.2?

v1.0.7 was there, NOT v1.0.4, which is the version that my install.packages() was looking for.

On Tue, Aug 29, 2017 at 10:11 AM, trevorld notifications@github.com wrote:

Not reproducible for me (argparse package (v1.0.7) installs fine using the Berkely mirror, UCLA mirror doesn't show up as a choice of mirror when using install.packages). Maybe you had freakishly unlucky timing while version 1.0.7 (pushed to CRAN last week) percolated through the mirror ecosystem. Version 1.0.4 should be found only in the archives but if the mirror is up to date you should be able to access version 1.0.7.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/trevorld/argparse/issues/19#issuecomment-325731430, or mute the thread https://github.com/notifications/unsubscribe-auth/ACj529ge5vvwh-FlYkC2eKe9KMQ1PIh2ks5sdEY0gaJpZM4PFQhY .

trevorld commented 6 years ago

Yes R version 3.3.2. However for me install.packages installs v1.0.7 of argparse just fine.

trevorld@trevorld-Bonobo-Extreme:~/tmp/cvtp$ sudo R
[sudo] password for trevorld: 

R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (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.

  Natural language support but running in an English locale

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.

> install.packages("argparse")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://cran.cnr.berkeley.edu/src/contrib/argparse_1.0.7.tar.gz'
Content type 'application/x-gzip' length 23507 bytes (22 KB)
==================================================
downloaded 22 KB

* installing *source* package ‘argparse’ ...
** package ‘argparse’ successfully unpacked and MD5 sums checked
** R
** exec
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (argparse)

The downloaded source packages are in
    ‘/tmp/RtmpNC8Uuw/downloaded_packages’
>