Yes, I should have mentioned that I tried this same line of code and I still got an error.
-----Original Message----- From: Duncan Murdoch <murdoch.dun...@gmail.com> Sent: Wednesday, December 4, 2019 8:32 AM To: Prophet, William <william.prop...@kochind.com>; r-help@r-project.org Subject: Re: [R] package MCMCpack Sent by an external sender ---------------------------------------------------------------------- On 04/12/2019 8:47 a.m., Prophet, William wrote: > I am running R on my work computer with the following parameters: >> sessionInfo() > R version 3.5.3 (2019-03-11) > Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 > x64 (build 9200) > > > I am trying to install the "MCMCpack" library. In the process however, I > receive the message: > >> install.packages("MCMCpack") > > Warning in install.packages : > > package 'MCMCpack' is not available (for R version 3.5.3) > > > I have tried to install earlier versions of the "MCMCpack" library which I > obtained from the following website: > https://cran.r-project.org/src/contrib/Archive/MCMCpack/ > > using the following code: > packageurl <- > "https://cran.r-project.org/src/contrib/Archive/MCMCpack/MCMCpack_1.2-4.tar.gz" > install.packages(packageurl, type="source") That's not the way to install a tarball. You should use install.packages(packageurl, type="source", repos=NULL) However, you may still have problems: when I tried that, the install failed because of C++ errors. I don't know if configure options (e.g. specifying a particular version of C++) would have fixed the problems. Duncan Murdoch > > but I get an identical error message: > >> packageurl <- >> "https://cran.r-project.org/src/contrib/Archive/MCMCpack/MCMCpack_1.2-4.tar.gz" > >> install.packages(packageurl, type="source") > > Warning in install.packages : > > package > 'https://cran.r-project.org/src/contrib/Archive/MCMCpack/MCMCpack_1.2- > 4.tar.gz' is not available (for R version 3.5.3) > > > > I realize that updating my R version to 3.6.1 could possibly solve the > problem, but this would be impractical for me because my version needs to be > consistent with others on my team. In any case, the fact that I am getting > errors (detailed above) with *every* version of "MCMCpack" seems odd. > > Do you have any suggestions for how I can install a working version of > "MCMCpack" for my version of R? > > Thank you, > Bill > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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 -- To UNSUBSCRIBE and more, see 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.