Re: [R] Changing code within a package

From: Duncan Murdoch <>
Date: Thu, 06 Mar 2008 16:17:57 -0500

On 3/6/2008 3:57 PM, Shewcraft, Ryan wrote:
> I was able to hack the code in the polspline package in order to change
> the plot.polymars function so that I can set the limits of my y-axis.
> However, I was only able to do this by entering plot.polymars in R,
> copying the code to Word, changing what I needed, and then pasting the
> new code in R to redefine the polt.polymars function. I was able to
> successfully change the function, but now I would like to be able to
> insert this changed code into the polspline package so that I can use it
> with python. Is there any easy way to just copy and paste my hacked
> code in or do I need to go through a more complicated process?
> Sorry if this is a bit unclear--I'm not yet familiar with R-jargon so
> let me know if you have any questions.

What you should do is download the source of package, and make your changes there. Then run R CMD INSTALL to install it.

It would also be polite to mention your changes to the package author and/or maintainer; they might incorporate them into the next release of it.

Duncan Murdoch mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 06 Mar 2008 - 21:20:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Mar 2008 - 23:30:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive