Hi everybody, I'm not very experienced with R software. I have used it several times for some of the population genetics analyses. I have problem with executing one of the script. The script is created by another software called Gimlet and it is aimed to calculate rarefaction curve in R software. However, when I try to execute the script, it says: *Error in library(nls) : there is no package called 'nls'.* I used the script previously on another PC about 2 or 3 years ago without problems. I tried to reinstall R but no help. I'm using the version 2.13.0. Any help would be kindly appreciated (I'm in hurry :o...) matotope -- View this message in context: http://r.789695.n4.nabble.com/Error-in-library-nls-tp3630143p3630143.html Sent from the R help mailing list archive at Nabble.com.
matotope <matotope <at> gmail.com> writes:> > Hi everybody, > I'm not very experienced with R software. I have used it several times for > some of the population genetics analyses. I have problem with executing one > of the script. The script is created by another software called Gimlet and > it is aimed to calculate rarefaction curve in R software. > However, when I try to execute the script, it says: *Error in library(nls) : > there is no package called 'nls'.* > > I used the script previously on another PC about 2 or 3 years ago without > problems. I tried to reinstall R but no help. I'm using the version 2.13.0. > > Any help would be kindly appreciated (I'm in hurry :o...)nls has been moved to the stats package. You don't need to load the (no longer existent) 'nls' package to use it. Try commenting out that line in the script. Ben Bolker
On Jun 28, 2011, at 8:09 AM, matotope wrote:> Hi everybody, > I'm not very experienced with R software. I have used it several > times for > some of the population genetics analyses. I have problem with > executing one > of the script. The script is created by another software called > Gimlet and > it is aimed to calculate rarefaction curve in R software. > However, when I try to execute the script, it says: *Error in > library(nls) : > there is no package called 'nls'.*Did you check to see whether nls was installed under 2.13.0? (actually you did check with the library call and it isn't.)> > I used the script previously on another PC about 2 or 3 years ago > without > problems. I tried to reinstall R but no help. I'm using the version > 2.13.0. > > Any help would be kindly appreciated (I'm in hurry :o...) > > matotope > > -- > View this message in context: http://r.789695.n4.nabble.com/Error-in-library-nls-tp3630143p3630143.html > Sent from the R help mailing list archive at Nabble.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.David Winsemius, MD West Hartford, CT
matotope <matotope <at> gmail.com> writes:> I installed the 2.8.0 version and it seems to be working fine now.Hard to see from a brief glance at the code why it would not work in 2.13.0 as well, but glad you got the problem solved. If you will need to maintain and extend this code in the future it may be worth figuring out what breaks between 2.8.0 and 2.13.0 and fixing it, as it is often difficult to get advice on the list about old versions of R (as releases are bi-annual, 2.8.0 should be about 2.5 years old, which is antiquated by R community standards ...) Ben Bolker