On 18/04/2010 7:52 AM, 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?

Generally package creation is a topic for the R-devel mailing list; if you
have further questions, please continue there.

Building a package doesn't install it.  You need to install the package
after changes.  (You probably won't be able to install it while it is in
use; it's possible to unattach a package that is in use, but it's tricky,
and I find it is generally easier to quit the session, install the new
version, then restart R.)

You should never have to run package.skeleton more than once per package,
and it could be harmful to do so, because you are expected to make changes
to the skeleton after it is created before you have a finished package.
package.skeleton() could make you lose those changes.

Duncan Murdoch

P.S. I'm having email problems at my regular murdoch@stats.uwo.ca address,
so may be slow replying to messages sent there.

	[[alternative HTML version deleted]]

