Lisrelchen 发表于 2013-12-6 02:26 
This is the home page for the book, Bayesian Data Analysis, by Andrew Gelman, John Carlin, Hal Stern ...
不能安装rstan包,求指导我安装之后的结果
options(repos = c(getOption("repos"),
+ rstan = "http://wiki.rstan-repo.googlecode.com/git/"))
> install.packages('rstan', type = 'source')
Warning: unable to access index for repository
http://wiki.rstan-repo.googlecod ... .tar.gz/src/contrib
Warning: unable to access index for repository
http://wiki.rstan-repo.googlecod ... .tar.gz/src/contrib
Warning: unable to access index for repository
http://wiki.rstan-repo.googlecod ... .tar.gz/src/contrib
also installing the dependency 'inline'
trying URL 'http://cran.ms.unimelb.edu.au/src/contrib/inline_0.3.13.tar.gz'
Content type 'application/x-tar' length 14224 bytes (13 Kb)
opened URL
downloaded 13 Kb
trying URL 'http://wiki.rstan-repo.googlecode.com/git/src/contrib/rstan_2.0.1.tar.gz'
Content type 'application/x-gzip' length 4773521 bytes (4.6 Mb)
opened URL
downloaded 4.6 Mb
* installing *source* package 'inline' ...
** package 'inline' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (inline)
C-c C-c
Warning message:
In install.packages("rstan", type = "source") :
installation of package 'rstan' had non-zero exit status
> > > require("rstan")
Loading required package: rstan
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'rstan'
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.0.2 tools_3.0.2