Hi, From R 2.6, I would like to update to R2.7. I would like to have some tips on the recommended method of installing the latest versions of an entire list of packages in R2.7 - i.e. all the packages that I have presently installed in R2.6. I am hoping that there is an easier method than fetching the packages individually as I did, to begin with, for R2.6. Additionally, I would like to install R2.7 on another pc which is not connected to the internet. I have previously installed R2.6 on it by fetching the zip files from another pc and installed them from the local zip files. I would like to know if there is a method of transferring an entire installation (base+selected packages) from one pc to another. Will there be a special problem if the first is a win vista pc and the 2nd has win 2000? One problem that I have in continuing to use R2.6 is in getting compatible versions of a new package that happens to attract my interest. For example, I was interested in getting the arm package for R2.6.1. I could not find the package in the "R Binaries" list on CRAN webpage. In the packages list, I did find old versions in the "arm archive". However, the files were in ".....tar.gz" format. How does one install from this format? It does not appear to be as straightforward as in installing from the zip format files.Recently, I had the same problem in installing a compatible version of the "norm" package also. I am interested to know how I can tackle these problems. I will appreciate all the help that I can get. Thanks, Ravi
There are a few different methods discussed in the README to the batchfiles distribution. Home page at: http://batchfiles.googlecode.com On Wed, May 7, 2008 at 12:51 PM, ravi <rv15i at yahoo.se> wrote:> Hi, > >From R 2.6, I would like to update to R2.7. I would like to have some tips on the recommended method of installing the latest versions of an entire list of packages in R2.7 - i.e. all the packages that I have presently installed in R2.6. > I am hoping that there is an easier method than fetching the packages individually as I did, to begin with, for R2.6. > Additionally, I would like to install R2.7 on another pc which is not connected to the internet. I have previously installed R2.6 on it by fetching the zip files from another pc and installed them from the local zip files. I would like to know if there is a method of transferring an entire installation (base+selected packages) from one pc to another. Will there be a special problem if the first is a win vista pc and the 2nd has win 2000? > One problem that I have in continuing to use R2.6 is in getting compatible versions of a new package that happens to attract my interest. For example, I was interested in getting the arm package for R2.6.1. I could not find the package in the "R Binaries" list on CRAN webpage. In the packages list, I did find old versions in the "arm archive". However, the files were in ".....tar.gz" format. How does one install from this format? It does not appear to be as straightforward as in installing from the zip format files.Recently, I had the same problem in installing a compatible version of the "norm" package also. I am interested to know how I can tackle these problems. > I will appreciate all the help that I can get. > Thanks, > Ravi > > ______________________________________________ > R-help at 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. >
Hi, There is a lot of information at the link shown below. But it is not easy to know where to look. Also, not easy to interpret correctly the directions. I followed the following two methods, both of which failed for me. (1)?I first installed R2.7. I then followed the directions in, "What's the best way to upgrade ?" in "R for Windows FAQ". I copied the library folder from R2.6 into the R2.7 folder. I then tried to run the following command : update.packages(checkBuilt=TRUE, ask=FALSE) I don't remember the exact error message now, but it did not work. In the instructions, it is stated that one should transfer the installed packages to the library folder. Does this mean that I can just retain the R.css file in the R2.7 library folder and then fill it up with the old package folders from R2.6? Any specific and detailed suugestions are welcome here. (2) I then tried the following method : #---run in previous version packages <- installed.packages()[,"Package"] save(packages, file="Rpackages") #---run in new version load("Rpackages") for (p in setdiff(packages, installed.packages()[,"Package"])) install.packages(p) I copied the Rpackages file from R2.6 into R2.7 folder. But this did not work either. I know that it would be best if I reproduced the exact error messages, but I have tried so many different things now and have lost track of the exact error messages at each stage. Looking for help, Thanking you, Ravi ----- Original Message ---- From: Gabor Grothendieck <ggrothendieck at gmail.com> To: ravi <rv15i at yahoo.se> Cc: r-help at r-project.org Sent: Wednesday, 7 May, 2008 8:46:07 PM Subject: Re: [R] help with updating to R2.7 There are a few different methods discussed in the README to the batchfiles distribution.? Home page at: http://batchfiles.googlecode.com On Wed, May 7, 2008 at 12:51 PM, ravi <rv15i at yahoo.se> wrote:> Hi, > >From R 2.6, I would like to update to R2.7. I would like to have some tips on the recommended method of installing the latest versions of an entire list of packages in R2.7 - i.e. all the packages that I have presently installed in R2.6. > I am hoping that there is an easier method than fetching the packages individually as I did, to begin with, for R2.6. > Additionally, I would like to install R2.7 on another pc which is not connected to the internet. I have previously installed R2.6 on it by fetching the zip files from another pc and installed them from the local zip files. I would like to know if there is a method of transferring an entire installation (base+selected packages) from one pc to another. Will there be a special problem if the first is a win vista pc and the 2nd has win 2000? > One problem that I have in continuing to use R2.6 is in getting compatible versions of a new package that happens to attract my interest. For example, I was interested in getting the arm package for R2.6.1. I could not find the package in the "R Binaries" list on CRAN webpage. In the packages list, I did find old versions in the "arm archive". However, the files were in ".....tar.gz" format. How does one install from this format? It does not appear to be as straightforward as in installing from the zip format files.Recently, I had the same problem in installing a compatible version of the "norm" package also. I am interested to know how I can tackle these problems. > I will appreciate all the help that I can get. > Thanks, > Ravi > > ______________________________________________ > R-help at 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. >
Hi, Ouch! That really hurt. But I get the point. Here's what I did now. I copied all the package folders from R2.6, except for the R.css file, and copied them into the R2.7 folder. In the process, I overwrote the common files that came with the installation of R2.7. Here's the output that I obtained in R2.7 :> library()Error in unique.default(ans) : ? 2 arguments passed to .Internal(unique) which requires 3> update.packages(checkBuilt=TRUE, ask=FALSE)Error: could not find function "update.packages" My intention with my previous mail was to check and obtain confirmation on details like what I should do with the R.css file. But I realise that I should have then restricted myself to that single question. That way, I would not be wasting the valuable time of the R list experts, from whom I have received a lot of help previously. After reading the FAQ once again, I am guessing that the problem could be a case of the internet downloading functions failing. As suggested in the FAQ, I tried the following commands :> "path_to_R\bin\Rgui.exe" http_proxy=http://gannet/ http_proxy_user=askError: unexpected symbol in ""path_to_R\bin\Rgui.exe" http_proxy"> "path_to_R\bin\Rgui.exe" http_proxy=http://user:pass at gannet:80/Error: unexpected symbol in ""path_to_R\bin\Rgui.exe" http_proxy" Should I run the above commands in R, or in the windows command window? Thanking You, Ravi ----- Original Message ---- From: Duncan Murdoch <murdoch at stats.uwo.ca> To: ravi <rv15i at yahoo.se> Cc: r-help at r-project.org Sent: Thursday, 8 May, 2008 2:57:07 PM Subject: Re: [R] help with updating to R2.7 On 5/8/2008 8:30 AM, ravi wrote:> I know that it would be best if I reproduced the exact error messages, but I have tried so many different things now > and have lost track of the exact error messages at each stage.This is not a reasonable request.? Rather than trying those two methods one more time, and recording what goes wrong, you expect someone on the list to do it for you?? If the advice was in the FAQ, presumably it works for others, so the reason it didn't work for you is likely that you misinterpreted part of it, or your system has a unique problem, etc. ? The *only* way someone could diagnose that would be to see the error messages. You need to use some common sense when you're asking for help. Duncan Murdoch
Hi, Thanks for the help. I have now solved the problem of installing the old packages in R2.7. A preliminary check showed that they seemed to work. But I had the following problem with updating :> update.packages(checkBuilt=TRUE, ask=FALSE)--- Please select a CRAN mirror for use in this session --- Warning: unable to access index for repository http://cran.uk.r-project.org/bin/windows/contrib/2.7 Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.7 Warning message: In open.connection(con, "r") : ? unable to connect to 'cran.r-project.org' on port 80. This must be due to a firewall problem. Is there a way of solving this? Maybe, I should just repeat this process in another pc and internet connection which does not have this firewall problem. I can then copy over the resulting files into my present pc. I have now downloaded the batchfiles folder with the movedir.bat and copydir.bat commands. This?appears to offer a much better method of updating libraries. But I am not very sure how I can get started with it. It does not appear to be a regular package to be installed in R. It seems that I need to run it from the windows command window. Can you please show me a small example of how I can get started with it. Thanking You, Ravi ----- Original Message ---- From: Gabor Grothendieck <ggrothendieck at gmail.com> To: ravi <rv15i at yahoo.se> Cc: Duncan Murdoch <murdoch at stats.uwo.ca>; r-help at r-project.org Sent: Thursday, 8 May, 2008 4:51:47 PM Subject: Re: [R] help with updating to R2.7 That's not what movedir.bat and copydir.bat in batchfiles do.? They will not overwrite any files. On Thu, May 8, 2008 at 10:40 AM, ravi <rv15i at yahoo.se> wrote:> Hi, >? Ouch! That really hurt. But I get the point. >? Here's what I did now. I copied all the package folders from R2.6, except for the R.css file, and copied them into the R2.7 folder. >? In the process, I overwrote the common files that came with the installation of R2.7. >? Here's the output that I obtained in R2.7 : >? > library() >? Error in unique.default(ans) : >? ? 2 arguments passed to .Internal(unique) which requires 3 > > > update.packages(checkBuilt=TRUE, ask=FALSE) >? Error: could not find function "update.packages" > >? My intention with my previous mail was to check and obtain confirmation on details like what I should do with the R.css file. >? But I realise that I should have then restricted myself to that single question. >? That way, I would not be wasting the valuable time of the R list experts, from whom I have received a lot of help previously. >? After reading the FAQ once again, I am guessing that the problem could be a case of the internet downloading functions failing. >? As suggested in the FAQ, I tried the following commands : >? > "path_to_R\bin\Rgui.exe" http_proxy=http://gannet/ http_proxy_user=ask >? Error: unexpected symbol in ""path_to_R\bin\Rgui.exe" http_proxy" >? > "path_to_R\bin\Rgui.exe" http_proxy=http://user:pass at gannet:80/ >? Error: unexpected symbol in ""path_to_R\bin\Rgui.exe" http_proxy" >? Should I run the above commands in R, or in the windows command window? > >? Thanking You, >? Ravi > > >? ----- Original Message ---- >? From: Duncan Murdoch <murdoch at stats.uwo.ca> >? To: ravi <rv15i at yahoo.se> >? Cc: r-help at r-project.org > > Sent: Thursday, 8 May, 2008 2:57:07 PM >? Subject: Re: [R] help with updating to R2.7 > > > > On 5/8/2008 8:30 AM, ravi wrote: >? > I know that it would be best if I reproduced the exact error messages, but I have tried so many different things now >? > and have lost track of the exact error messages at each stage. > >? This is not a reasonable request.? Rather than trying those two methods >? one more time, and recording what goes wrong, you expect someone on the >? list to do it for you?? If the advice was in the FAQ, presumably it >? works for others, so the reason it didn't work for you is likely that >? you misinterpreted part of it, or your system has a unique problem, etc. >? ? The *only* way someone could diagnose that would be to see the error >? messages. > >? You need to use some common sense when you're asking for help. > >? Duncan Murdoch > > >? ______________________________________________ >? R-help at 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. >
[This email is either empty or too large to be displayed at this time]
Hi, I would like to thank Gabor, Duncan, John and Vincent for patiently helping me with tips. I found John's method to be the simplest to implement. Actually, I should have been able to think of that myself. But I got distracted by trying to digest too much information all at once. Vincent, your solution is interesting. I will certainly try it out for future use. As you say, there may not be a need to update all that often. You have opened a window for me?to stuff like startup and environmental variables, something that I was not even vaguely familiar with before. Duncan, thank you for reminding me of proper etiquette when submitting a question. Gabor, I am not realy sure right now about how I should get started with batchfiles. But I will try it out and see how far I can get with them. Thanks, Ravi ----- Original Message ---- From: Vincent Goulet <vincent.goulet at act.ulaval.ca> To: John C Frain <frainj at gmail.com> Cc: Duncan Murdoch <murdoch at stats.uwo.ca>; r-help at r-project.org; ravi <rv15i at yahoo.se> Sent: Thursday, 8 May, 2008 11:22:25 PM Subject: Re: [R] help with updating to R2.7 Disclaimer: I don't use R on Windows much myself. But: I can't help? noticing such threads occurring once in a while on r-help. Why not simply define some folder to host one's personal library? *outside* of the main R library? As explained in ?Startup, one can put? something like ??? R_LIBS="<path_to_personal_library>:${R_LIBS}" in a .Renviron file located in his/her HOME directory (see http://cran.r-project.org/bin/windows/base/rw-FAQ.html#What-are-HOME-and-working-directories_003f ? for information on this). Then, install.packages() will, well,? install packages in this personal folder and R updates do not require? shuffling? around of the library. At most an update.packages() once in? a while. I have been using this scheme for a long time with much success (and? peace of mind) on Linux and OS X. Hope this helps. Le jeu. 8 mai ? 15:02, John C Frain a ?crit :> When I upgrade in Windows from say 2.6.2 tp 2.7.0 I do the following > > 1. Install 2.7.0 in a new directory > > 2 Rename the library subdirectory in the new version from library to? > library2 > > 3 Copy the library subdirectory in 2.6.2 to 2.7.0 > > 4 Copy the contents of library2 to the transferred library.? This > re-installs the updated base packages. > > 5 Within R run update.packages(checkBuilt = TRUE) and you will be > presented with a list of packages and be given the option of updating > each package. > > This procedure is easy to implement.? I have used it for several > updates and it has always worked well > > Best Regards > > John. > > 2008/5/8 Duncan Murdoch <murdoch at stats.uwo.ca>: >> On 5/8/2008 10:40 AM, ravi wrote: >>> >>> Hi, >>> Ouch! That really hurt. But I get the point. >>> Here's what I did now. I copied all the package folders from R2.6,? >>> except >>> for the R.css file, and copied them into the R2.7 folder. >> >> That's your problem.? You've hosed the 2.7 libraries. >> >> You need to reinstall 2.7.? Only copy package folders from 2.6 if? >> they don't >> exist in 2.7.? If they already exist there, they've already been? >> updated. >> >> The older packages may not work in 2.7, but once you run the >> update.packages() function, you should get the latest versions. >> >> Duncan Murdoch >> >>> In the process, I overwrote the common files that came with the >>> installation of R2.7. >>> Here's the output that I obtained in R2.7 : >>>> >>>> library() >>> >>> Error in unique.default(ans) :? 2 arguments passed? >>> to .Internal(unique) >>> which requires 3 >>>> >>>> update.packages(checkBuilt=TRUE, ask=FALSE) >>> >>> Error: could not find function "update.packages" >>> >>> My intention with my previous mail was to check and obtain? >>> confirmation on >>> details like what I should do with the R.css file. >>> But I realise that I should have then restricted myself to that? >>> single >>> question. That way, I would not be wasting the valuable time of? >>> the R list >>> experts, from whom I have received a lot of help previously. >>> After reading the FAQ once again, I am guessing that the problem? >>> could be >>> a case of the internet downloading functions failing. >>> As suggested in the FAQ, I tried the following commands : >>>> >>>> "path_to_R\bin\Rgui.exe" http_proxy=http://gannet/? >>>> http_proxy_user=ask >>> >>> Error: unexpected symbol in ""path_to_R\bin\Rgui.exe" http_proxy" >>>> >>>> "path_to_R\bin\Rgui.exe" http_proxy=http://user:pass at gannet:80/ >>> >>> Error: unexpected symbol in ""path_to_R\bin\Rgui.exe" http_proxy" >>> Should I run the above commands in R, or in the windows command? >>> window? >>> >>> Thanking You, >>> Ravi >>> >>> ----- Original Message ---- >>> From: Duncan Murdoch <murdoch at stats.uwo.ca> >>> To: ravi <rv15i at yahoo.se> >>> Cc: r-help at r-project.org >>> Sent: Thursday, 8 May, 2008 2:57:07 PM >>> Subject: Re: [R] help with updating to R2.7 >>> >>> On 5/8/2008 8:30 AM, ravi wrote: >>>> >>>> I know that it would be best if I reproduced the exact error? >>>> messages, >>>> but I have tried so many different things now and have lost track? >>>> of the >>>> exact error messages at each stage. >>> >>> This is not a reasonable request.? Rather than trying those two? >>> methods >>> one more time, and recording what goes wrong, you expect someone? >>> on the list >>> to do it for you?? If the advice was in the FAQ, presumably it? >>> works for >>> others, so the reason it didn't work for you is likely that you >>> misinterpreted part of it, or your system has a unique problem,? >>> etc.? The >>> *only* way someone could diagnose that would be to see the error? >>> messages. >>> >>> You need to use some common sense when you're asking for help. >>> >>> Duncan Murdoch >>> >> >> ______________________________________________ >> R-help at 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. >> > > > > -- > John C Frain > Trinity College Dublin > Dublin 2 > Ireland > www.tcd.ie/Economics/staff/frainj/home.html > mailto:frainj at tcd.ie > mailto:frainj at gmail.com > > ______________________________________________ > R-help at 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.--- ? Vincent Goulet, Associate Professor ? ?cole d'actuariat ? Universit? Laval, Qu?bec ? Vincent.Goulet at act.ulaval.ca? http://vgoulet.act.ulaval.ca