Running R.app on Mac OS X 10.4
> version
I am trying to learn how to modify functions
in a locked environment.
If I use
But this does not update the exported copy of the
function (the documentation for fixInNamespace says
this is the case) - how do I accomplish this last step?
Is this the proper way to modify a package function?
Are there other ways? I've searched webpages, R news,
help files and have been unable to find out how to
get this process fully completed.
Steven McKinney
Statistician
email: smckinney@bccrc.ca
_
platform powerpc-apple-darwin8.6.0
arch powerpc
os darwin8.6.0
system powerpc, darwin8.6.0
status
major 2
minor 3.1
year 2006
month 06
day 01
svn rev 38247
language R
version.string Version 2.3.1 (2006-06-01)
>
fixInNamespace("rollmean.default", ns = "zoo")
I can edit the rval <- cumsum(y)/k line to read
rval <- 100 * cumsum(y)/k
save the file and exit the R.app GUI editor.
Molecular Oncology and Breast Cancer Program
British Columbia Cancer Research Centre
tel: 604-675-8000 x7561
BCCRC
Molecular Oncology
675 West 10th Ave, Floor 4
Vancouver B.C.
V5Z 1L3
Canada
Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.
Archive generated by hypermail 2.1.8, at Thu 20 Jul 2006 - 22:28:58 GMT.
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.