trevorld / r-argparse

command-line optional and positional argument parser
https://trevorldavis.com/R/argparse/
GNU General Public License v2.0
104 stars 11 forks source link

compatibility with R Version 3.1.2 #6

Closed nancpond closed 9 years ago

nancpond commented 9 years ago

I've so far been unsuccessful installing argparse using the latest version of R (3.1.2, 'Pumpkin Helmet').

> install.packages("argparse")

    package ‘argparse’ is available as a source package but not as a binary

Warning in install.packages :
  package ‘argparse’ is not available (for R version 3.1.2)
> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

I did try downloading the .tgz and installing that way, but got the same 'not available' issue.

trevorld commented 9 years ago

Did you try install.packages("argparse", type = "source") or install.packages("argparse", type = "mac.binary.mavericks")? Or if you have devtools than try to install the development version with devtools::install_github("argparse", "trevorld")? Assuming you have a modern version of python (2.7 or 3.2+) on your PATH than there shouldn't be any issue with a source install on OSX since there isn't any compiled code and it works fine on other unix platforms. FYI for a source install you'd want to download the ".tar.gz" file and not the ".tgz" file (which is a binary file).

Note that CRAN can't build Mac binaries for OSX Snow Leopard since their Snow Leopard machine has too ancient a version of Python to run the argparse package.