He didn't specify the RStudio repos, though it's probably implicitly specified in getOption("repos"). I wonder why install.packages() is looking there, when repos is given explicitly? On 08/10/2020 8:54 a.m., Uwe Ligges wrote:> Drop the RStudio repos. > > Best, > Uwe Ligges > > On 05.10.2020 11:10, Steven Yen wrote: >> Thanks. I did as suggested but still received a warning, though the >> installation went through. Anything I could do to install without the >> warning message. >> >> What is the contrib.url argument? >> >> > install.packages("aod",repos='https://cran-archive.r-project.org') >> Warning in install.packages : >> ? unable to access index for repository >> http://cran.rstudio.com/bin/windows/contrib/3.0 >> trying URL >> 'https://cran-archive.r-project.org/bin/windows/contrib/3.0/aod_1.3.zip' >> Content type 'application/zip' length 225712 bytes (220 Kb) >> opened URL >> downloaded 220 Kb >> >> package ?aod? successfully unpacked and MD5 sums checked >> >> The downloaded binary packages are in >> C:\Users\USER\AppData\Local\Temp\Rtmp46p9a3\downloaded_packages >> > >> >> On 2020/10/5 ?? 04:58, Uwe Ligges wrote: >>> Then you'd rather need >>> >>> install.packages("aod",repos='https://cran-archive.r-project.org') >>> >>> or use the contrib.url argument. >>> >>> Best, >>> Uwe Ligges >>> >>> >>> On 05.10.2020 10:47, Steven Yen wrote: >>>> Thanks for the help. I do update to the latest R-4.0.2. As I said, >>>> for reasons that's hard to explain, some of my tasks are better >>>> handled with an older version of R, in this case R-3.0.3. Please just >>>> help me install packages successfully with this older version of R. >>>> >>>> I ran the following line but obviously was not getting it across. >>>> >>>> ====>>>> >>>>> install.packages("aod",repos='https://cran-archive.r-project.org/bin/windows/contrib/3.0/') >>>>> Warning in >>>> install.packages : unable to access index for repository >>>> http://cran.rstudio.com/bin/windows/contrib/3.0 Warning in >>>> install.packages : unable to access index for repository >>>> https://cran-archive.r-project.org/bin/windows/contrib/3.0/bin/windows/contrib/3.0 >>>> Warning in install.packages : package ?aod? is not available (for R >>>> version 3.0.3) >>>> >>>> On 2020/10/5 ?? 04:12, Uwe Ligges wrote: >>>>> From >>>>> >>>>> ../ReadMe >>>>> in the mentioned web resource: >>>>> >>>>> "Packages for R >= 1.7.0 and R < 3.2.0 are available from >>>>> https://cran-archive.r-project.org/bin/windows/contrib/" >>>>> >>>>> We do not hold binaries of several year old versions of R on CRAN. >>>>> >>>>> Note that R 3.0.0 is 7 years old. You shoudl realy consider to >>>>> update to 4.0.2. >>>>> >>>>> Best, >>>>> Uwe Ligges >>>>> >>>>> >>>>> >>>>> >>>>> On 05.10.2020 09:56, Steven Yen wrote: >>>>>> I had to install/use an older version of (R-3.0.3) for a reason. While >>>>>> installing a package from CRAN (either in RStudio or R), I received >>>>>> the >>>>>> following warning message saying unable to access index for repository >>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0. See message below. In >>>>>> this case, I tried to install "aod". The install nevertheless went >>>>>> through, as confirmed by the library statement (I did not try to use >>>>>> it). Any idea? Thank you. >>>>>> >>>>>> ====>>>>>> >>>>>> Warning: unable to access index for repository >>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 Warning: unable to >>>>>> access index for repository >>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 > >>>>>> install.packages("aod") Warning in install.packages : unable to access >>>>>> index for repository http://cran.rstudio.com/bin/windows/contrib/3.0 >>>>>> Warning in install.packages : unable to access index for repository >>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 package ?aod? is >>>>>> available as a source package but not as a binary Warning in >>>>>> install.packages : package ?aod? is not available (for R version >>>>>> 3.0.3) >>>>>> ? > library(aod) >>>>>> >>>>>> >>>>>> ????[[alternative HTML version deleted]] >>>>>> >>>>>> ______________________________________________ >>>>>> R-help at 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 at 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 at 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. >
Just remembered: RStudio runs its own wrapper around install.packages(). Steven, you should try doing the install from outside of RStudio, and see if it makes a difference. Duncan Murdoch On 08/10/2020 9:59 a.m., Duncan Murdoch wrote:> He didn't specify the RStudio repos, though it's probably implicitly > specified in getOption("repos"). I wonder why install.packages() is > looking there, when repos is given explicitly? > > On 08/10/2020 8:54 a.m., Uwe Ligges wrote: >> Drop the RStudio repos. >> >> Best, >> Uwe Ligges >> >> On 05.10.2020 11:10, Steven Yen wrote: >>> Thanks. I did as suggested but still received a warning, though the >>> installation went through. Anything I could do to install without the >>> warning message. >>> >>> What is the contrib.url argument? >>> >>> > install.packages("aod",repos='https://cran-archive.r-project.org') >>> Warning in install.packages : >>> ? unable to access index for repository >>> http://cran.rstudio.com/bin/windows/contrib/3.0 >>> trying URL >>> 'https://cran-archive.r-project.org/bin/windows/contrib/3.0/aod_1.3.zip' >>> Content type 'application/zip' length 225712 bytes (220 Kb) >>> opened URL >>> downloaded 220 Kb >>> >>> package ?aod? successfully unpacked and MD5 sums checked >>> >>> The downloaded binary packages are in >>> C:\Users\USER\AppData\Local\Temp\Rtmp46p9a3\downloaded_packages >>> > >>> >>> On 2020/10/5 ?? 04:58, Uwe Ligges wrote: >>>> Then you'd rather need >>>> >>>> install.packages("aod",repos='https://cran-archive.r-project.org') >>>> >>>> or use the contrib.url argument. >>>> >>>> Best, >>>> Uwe Ligges >>>> >>>> >>>> On 05.10.2020 10:47, Steven Yen wrote: >>>>> Thanks for the help. I do update to the latest R-4.0.2. As I said, >>>>> for reasons that's hard to explain, some of my tasks are better >>>>> handled with an older version of R, in this case R-3.0.3. Please just >>>>> help me install packages successfully with this older version of R. >>>>> >>>>> I ran the following line but obviously was not getting it across. >>>>> >>>>> ====>>>>> >>>>>> install.packages("aod",repos='https://cran-archive.r-project.org/bin/windows/contrib/3.0/') >>>>>> Warning in >>>>> install.packages : unable to access index for repository >>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 Warning in >>>>> install.packages : unable to access index for repository >>>>> https://cran-archive.r-project.org/bin/windows/contrib/3.0/bin/windows/contrib/3.0 >>>>> Warning in install.packages : package ?aod? is not available (for R >>>>> version 3.0.3) >>>>> >>>>> On 2020/10/5 ?? 04:12, Uwe Ligges wrote: >>>>>> From >>>>>> >>>>>> ../ReadMe >>>>>> in the mentioned web resource: >>>>>> >>>>>> "Packages for R >= 1.7.0 and R < 3.2.0 are available from >>>>>> https://cran-archive.r-project.org/bin/windows/contrib/" >>>>>> >>>>>> We do not hold binaries of several year old versions of R on CRAN. >>>>>> >>>>>> Note that R 3.0.0 is 7 years old. You shoudl realy consider to >>>>>> update to 4.0.2. >>>>>> >>>>>> Best, >>>>>> Uwe Ligges >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 05.10.2020 09:56, Steven Yen wrote: >>>>>>> I had to install/use an older version of (R-3.0.3) for a reason. While >>>>>>> installing a package from CRAN (either in RStudio or R), I received >>>>>>> the >>>>>>> following warning message saying unable to access index for repository >>>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0. See message below. In >>>>>>> this case, I tried to install "aod". The install nevertheless went >>>>>>> through, as confirmed by the library statement (I did not try to use >>>>>>> it). Any idea? Thank you. >>>>>>> >>>>>>> ====>>>>>>> >>>>>>> Warning: unable to access index for repository >>>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 Warning: unable to >>>>>>> access index for repository >>>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 > >>>>>>> install.packages("aod") Warning in install.packages : unable to access >>>>>>> index for repository http://cran.rstudio.com/bin/windows/contrib/3.0 >>>>>>> Warning in install.packages : unable to access index for repository >>>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 package ?aod? is >>>>>>> available as a source package but not as a binary Warning in >>>>>>> install.packages : package ?aod? is not available (for R version >>>>>>> 3.0.3) >>>>>>> ? > library(aod) >>>>>>> >>>>>>> >>>>>>> ????[[alternative HTML version deleted]] >>>>>>> >>>>>>> ______________________________________________ >>>>>>> R-help at 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 at 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 at 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. >> >
Thanks. You gentlemen please tell me what this means. In R (outside of RStudio) I ran: install.packages("aod") Received a warning (and installation did not seem to go through). Then I tried install.packages("aod",repos='https://cran-archive.r-project.org') Received a warning but it went on to try https://cran-archive.r-project.org/bin/windows/contrib/3.0/aod_1.3.zip and it worked. See log below. I expect to continue to use R-3.0.3 for a while and I very much like this to become a routine. Thank you all. Steven Yen > install.packages("aod") Warning in install.packages : ? unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.0 Warning in install.packages : ? unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.0 ?? package ?aod? is available as a source package but not as a binary Warning in install.packages : ? package ?aod? is not available (for R version 3.0.3) > install.packages("aod",repos='https://cran-archive.r-project.org') Warning in install.packages : ? unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.0 trying URL 'https://cran-archive.r-project.org/bin/windows/contrib/3.0/aod_1.3.zip' Content type 'application/zip' length 225712 bytes (220 Kb) opened URL downloaded 220 Kb package ?aod? successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\USER\AppData\Local\Temp\RtmpY7t6Ll\downloaded_packages On 2020/10/8 ?? 10:52, Duncan Murdoch wrote:> Just remembered:? RStudio runs its own wrapper around > install.packages().? Steven, you should try doing the install from > outside of RStudio, and see if it makes a difference. > > Duncan Murdoch > > On 08/10/2020 9:59 a.m., Duncan Murdoch wrote: >> He didn't specify the RStudio repos, though it's probably implicitly >> specified in getOption("repos").? I wonder why install.packages() is >> looking there, when repos is given explicitly? >> >> On 08/10/2020 8:54 a.m., Uwe Ligges wrote: >>> Drop the RStudio repos. >>> >>> Best, >>> Uwe Ligges >>> >>> On 05.10.2020 11:10, Steven Yen wrote: >>>> Thanks. I did as suggested but still received a warning, though the >>>> installation went through. Anything I could do to install without the >>>> warning message. >>>> >>>> What is the contrib.url argument? >>>> >>>> ?? > >>>> install.packages("aod",repos='https://cran-archive.r-project.org') >>>> Warning in install.packages : >>>> ?? ? unable to access index for repository >>>> http://cran.rstudio.com/bin/windows/contrib/3.0 >>>> trying URL >>>> 'https://cran-archive.r-project.org/bin/windows/contrib/3.0/aod_1.3.zip' >>>> >>>> Content type 'application/zip' length 225712 bytes (220 Kb) >>>> opened URL >>>> downloaded 220 Kb >>>> >>>> package ?aod? successfully unpacked and MD5 sums checked >>>> >>>> The downloaded binary packages are in >>>> C:\Users\USER\AppData\Local\Temp\Rtmp46p9a3\downloaded_packages >>>> ?? > >>>> >>>> On 2020/10/5 ?? 04:58, Uwe Ligges wrote: >>>>> Then you'd rather need >>>>> >>>>> install.packages("aod",repos='https://cran-archive.r-project.org') >>>>> >>>>> or use the contrib.url argument. >>>>> >>>>> Best, >>>>> Uwe Ligges >>>>> >>>>> >>>>> On 05.10.2020 10:47, Steven Yen wrote: >>>>>> Thanks for the help. I do update to the latest R-4.0.2. As I said, >>>>>> for reasons that's hard to explain, some of my tasks are better >>>>>> handled with an older version of R, in this case R-3.0.3. Please >>>>>> just >>>>>> help me install packages successfully with this older version of R. >>>>>> >>>>>> I ran the following line but obviously was not getting it across. >>>>>> >>>>>> ====>>>>>> >>>>>>> install.packages("aod",repos='https://cran-archive.r-project.org/bin/windows/contrib/3.0/') >>>>>>> >>>>>>> Warning in >>>>>> install.packages : unable to access index for repository >>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 Warning in >>>>>> install.packages : unable to access index for repository >>>>>> https://cran-archive.r-project.org/bin/windows/contrib/3.0/bin/windows/contrib/3.0 >>>>>> >>>>>> Warning in install.packages : package ?aod? is not available (for R >>>>>> version 3.0.3) >>>>>> >>>>>> On 2020/10/5 ?? 04:12, Uwe Ligges wrote: >>>>>>> From >>>>>>> >>>>>>> ../ReadMe >>>>>>> in the mentioned web resource: >>>>>>> >>>>>>> "Packages for R >= 1.7.0 and R < 3.2.0 are available from >>>>>>> https://cran-archive.r-project.org/bin/windows/contrib/" >>>>>>> >>>>>>> We do not hold binaries of several year old versions of R on CRAN. >>>>>>> >>>>>>> Note that R 3.0.0 is 7 years old. You shoudl realy consider to >>>>>>> update to 4.0.2. >>>>>>> >>>>>>> Best, >>>>>>> Uwe Ligges >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 05.10.2020 09:56, Steven Yen wrote: >>>>>>>> I had to install/use an older version of (R-3.0.3) for a >>>>>>>> reason. While >>>>>>>> installing a package from CRAN (either in RStudio or R), I >>>>>>>> received >>>>>>>> the >>>>>>>> following warning message saying unable to access index for >>>>>>>> repository >>>>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0. See message >>>>>>>> below. In >>>>>>>> this case, I tried to install "aod". The install nevertheless went >>>>>>>> through, as confirmed by the library statement (I did not try >>>>>>>> to use >>>>>>>> it). Any idea? Thank you. >>>>>>>> >>>>>>>> ====>>>>>>>> >>>>>>>> Warning: unable to access index for repository >>>>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 Warning: unable to >>>>>>>> access index for repository >>>>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 > >>>>>>>> install.packages("aod") Warning in install.packages : unable to >>>>>>>> access >>>>>>>> index for repository >>>>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 >>>>>>>> Warning in install.packages : unable to access index for >>>>>>>> repository >>>>>>>> http://cran.rstudio.com/bin/windows/contrib/3.0 package ?aod? is >>>>>>>> available as a source package but not as a binary Warning in >>>>>>>> install.packages : package ?aod? is not available (for R version >>>>>>>> 3.0.3) >>>>>>>> ? ? > library(aod) >>>>>>>> >>>>>>>> >>>>>>>> ? ????[[alternative HTML version deleted]] >>>>>>>> >>>>>>>> ______________________________________________ >>>>>>>> R-help at 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 at 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 at 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. >>> >> >[[alternative HTML version deleted]]