Thank you for advise. I am using mac osx 10.5. 8. I am still having problems with install :
install.packages("forecast",type="mac.binary.leopard") Warning: unable to access index for repository http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/3.0 package 'forecast' is available as a source package but not as a binary Warning message: package 'forecast' is not available (for R version 3.0.2) > install.packages("forecast",type="mac.binary") also installing the dependencies 'Rcpp', 'RcppArmadillo' trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/contrib/3.0/Rcpp_0.10.6.tgz' Content type 'application/x-gzip' length 3725876 bytes (3.6 Mb) opened URL ================================================== downloaded 3.6 Mb trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/contrib/3.0/RcppArmadillo_0.4.000.2.tgz' Content type 'application/x-gzip' length 1232985 bytes (1.2 Mb) opened URL ================================================== downloaded 1.2 Mb trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/contrib/3.0/forecast_5.0.tgz' Content type 'application/x-gzip' length 1205702 bytes (1.1 Mb) opened URL ================================================== downloaded 1.1 Mb The downloaded binary packages are in /tmp/RtmpXyRn6D/downloaded_packages > library("forecast") Error: package 'forecast' was built for x86_64-apple-darwin10.8.0 -----Original Message----- From: "Henrik Bengtsson" [h...@biostat.ucsf.edu] Date: 01/28/2014 12:39 PM To: "ce" <zadi...@excite.com> CC: "" <r-help@r-project.org> Subject: Re: [R] How do you install cran mac binaries Whether a package is install from source or from an available binary is controlled by argument 'type', cf. ?install.packages. I believed that, just as on Windows, the default on OSX was to install from binaries, but I might be wrong, or you have changed the settings of the below "option". So, instead, try: install.packages("forecast", type="mac.binary.leopard") You can set this as an option once per R session, i.e. options(pkgType="mac.binary.leopard"), and then it's enough to do: install.packages("forecast") To make that option "permanent" across R sessions, see ?.Rprofile. BTW, you want to use "both" instead of "mac.binary.leopard". /Henrik On Tue, Jan 28, 2014 at 3:09 AM, ce <zadi...@excite.com> wrote: > But in crran page it says mac binaries ? > if I do install.library, it compiles the package. My old mac can't compile > some packages. that's why I need to install binaries directly if possible. > > > -----Original Message----- > From: "Henrik Bengtsson" [h...@biostat.ucsf.edu] > Date: 01/28/2014 12:30 AM > To: "ce" <zadi...@excite.com> > CC: "" <r-help@r-project.org> > Subject: Re: [R] How do you install cran mac binaries > > As you install basically all CRAN packages and all OSes; > > install.packages("forecast") > > /Henrik > > On Mon, Jan 27, 2014 at 8:18 PM, ce <zadi...@excite.com> wrote: >> Sorry if the question is stupid, how you you install mac os binaries like >> in : >> >> http://cran.r-project.org/bin/macosx/contrib/r-release/forecast_5.0.tgz >> >> ______________________________________________ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.