RStan-2.1 Installation with repos=NULL

534 views
Skip to first unread message

John Hall

unread,
Jan 16, 2014, 11:29:59 AM1/16/14
to stan-...@googlegroups.com
I feel like I'm missing something obvious. I was able to (uninstall RStan 2 then) install RStan-2.1.0 on my home computer, but I'm having difficulty on my work computer, which is behind a proxy. I had the issue with RStan 2 (since RStan 2 was working, it's not an issue with inline or Rcpp). I was able to resolve it by downloading the .tar.gz file from git and running install.packages. It doesn't seem to be working on RStan-2.1 (or I've forgotten something I did back then). I'm running R 3.0.2. I setwd'ed to the directory with the .tar.gz file and got
> install.packages("rstan-2.1.0.tar.gz", repos=NULL, type="source")
Warning in untar2(tarfile, files, list, exdir, restore_times) :
  skipping pax global extended headers
ERROR: cannot extract package from 'rstan-2.1.0.tar.gz'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-30~1.2/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.0.2\library" "rstan-2.1.0.tar.gz"' had status 1
Warning in install.packages :
  installation of package ‘rstan-2.1.0.tar.gz’ had non-zero exit status

I found this strange because
> untar("rstan-2.1.0.tar.gz")
properly untars and I can't seem to find where untar2 is coming from or why there is an error. So I tried to install from the untarred folder, but I get
> install.packages("rstan-2.1.0")
Warning in install.packages :
  package ‘rstan-2.1.0’ is not available (for R version 3.0.2)
I tried other combinations of including repos or source to that and it didn't work. So then I tried downloading the zip with types source or win.binary and neither worked.

Any other tips?

Daniel Lee

unread,
Jan 16, 2014, 12:22:11 PM1/16/14
to stan-...@googlegroups.com
John,

Sorry about that -- if you downloaded straight from GitHub, it wouldn't have been the correct packaging of RStan. I've just updated the GitHub release to include the correct tarball.

Here's the link to the release:
https://github.com/stan-dev/rstan/releases/tag/v2.1.0

You want to download the binary in green. The direct link is:
https://github.com/stan-dev/rstan/releases/download/v2.1.0/rstan_2.1.0.tar.gz


With that, you should be able to run your original line:

> install.packages("rstan-2.1.0.tar.gz", repos=NULL, type="source")


I just installed it on a Windows machine using the newly linked tarball. Hopefully it'll work for you. Let us know if you have any other problems.




Daniel




--
You received this message because you are subscribed to the Google Groups "stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

John Hall

unread,
Jan 16, 2014, 12:26:56 PM1/16/14
to stan-...@googlegroups.com
Looks like it's working. Thanks.

John Hall

unread,
Apr 7, 2014, 3:10:03 PM4/7/14
to
I had to re-install all my R stuff. While re-installing rstan, I was trying to set the lib option in install.packages to only install packages in a separate folder, but it kept giving an error that no packages were specified. I was able to move the rstan folder after installation to the default folder though.
Reply all
Reply to author
Forward
0 new messages