Re: [R] Modifying the parameters for a function

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Fri 05 Aug 2005 - 00:33:22 EST

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@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



R-help@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 Received on Fri Aug 05 00:37:09 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:04:13 EST