I have modified the parameters for a function (for my own use) in the stats package, but I assume I need to update the parameter set in another file as I'm getting the following error when I run R: The compile works fine so I assume there is a configuration file in the base package of R that needs modification. Error in parse(file, n, text, prompt) : syntax error on line 11102 Error: unable to load R code in package 'stats' During startup - Warning message: package stats in options("defaultPackages") was not found Philip. [[alternative HTML version deleted]]
Philip Bermingham wrote:> I have modified the parameters for a function (for my own use) in the > stats package, but I assume I need to update the parameter set in > another file as I'm getting the following error when I run R: > > > > The compile works fine so I assume there is a configuration file in the > base package of R that needs modification. > > > > Error in parse(file, n, text, prompt) : syntax error on line 11102No, you have introduced an error, obviously. Uwe Ligges> Error: unable to load R code in package 'stats' > > During startup - Warning message: > > package stats in options("defaultPackages") was not found > > > > Philip. > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
What exactly do you mean by "compile"? What compile works fine? -roger Philip Bermingham wrote:> I have modified the parameters for a function (for my own use) in the > stats package, but I assume I need to update the parameter set in > another file as I'm getting the following error when I run R: > > > > The compile works fine so I assume there is a configuration file in the > base package of R that needs modification. > > > > Error in parse(file, n, text, prompt) : syntax error on line 11102 > > Error: unable to load R code in package 'stats' > > During startup - Warning message: > > package stats in options("defaultPackages") was not found > > > > Philip. > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/
When I compile the package I modified. -----Original Message----- From: Roger D. Peng [mailto:rpeng at jhsph.edu] Sent: Thursday, August 04, 2005 9:00 AM To: Philip Bermingham Cc: R-help at stat.math.ethz.ch Subject: Re: [R] Modifying the parameters for a function What exactly do you mean by "compile"? What compile works fine? -roger Philip Bermingham wrote:> I have modified the parameters for a function (for my own use) in the > stats package, but I assume I need to update the parameter set in > another file as I'm getting the following error when I run R: > > > > The compile works fine so I assume there is a configuration file inthe> base package of R that needs modification. > > > > Error in parse(file, n, text, prompt) : syntax error on line 11102 > > Error: unable to load R code in package 'stats' > > During startup - Warning message: > > package stats in options("defaultPackages") was not found > > > > Philip. > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide!http://www.R-project.org/posting-guide.html>-- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/
Philip Bermingham wrote:> I have modified the parameters for a function (for my own use) in the > stats package, but I assume I need to update the parameter set in > another file as I'm getting the following error when I run R: > > > > The compile works fine so I assume there is a configuration file in the > base package of R that needs modification. > > > > Error in parse(file, n, text, prompt) : syntax error on line 11102 > > Error: unable to load R code in package 'stats'This means that you've introduced a syntax error when you did your edits. The line number information is fairly useless: R has concatenated all of the files together, you don't see the original line number. Your best strategy is to look at where you made changes. I'm hoping to improve the error reporting on parse errors in R 2.2, but time is flying by... Duncan Murdoch> > During startup - Warning message: > > package stats in options("defaultPackages") was not found > > > > Philip. > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html