On Sun, 18 Apr 2010, carol white wrote:

Hi, I could finally create an R package. I was suprised to notice that when I want to update a function, even if it is updated in package_name/R/function.R and after build but it is not updated when the package is loaded. I see that the tar.gz file is updated but when I load the package, I get the old version. The only solution that I found was to update in R session and rerun package.skeleton, build etc. Why the update doesn't work directly in R folder?

Perhaps this is relevant?


?library

...

Details:


      ...

        (Furthermore, if the package has a name
        space and a name space of that name is already loaded, they work
        from the existing name space rather than reloading from the file
        system.  If you want to reload a package, call .detach. or
        .unloadNamespace. first.)


HTH,

Chuck


Cheers,

Carol

______________________________________________
R-help@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.


Charles C. Berry                            (858) 534-2098
                                            Dept of Family/Preventive Medicine
E mailto:cbe...@tajo.ucsd.edu               UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

______________________________________________
R-help@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.

Reply via email to