Re: [R] problem with package development and older defs earlier in search order

2012-11-10 Thread Martin J Reed
Rolf, Re version control: I use SVN and Git depending on the project I am working on and what others are using. Years ago I used RCS, as you say its great for a local repository (as is Git). The point I was making was not about version control but that others like me might get caught out by sav

Re: [R] problem with package development and older defs earlier in search order

2012-11-09 Thread Rolf Turner
On 10/11/12 12:08, Martin J Reed wrote: Rolf and Duncan Many thanks. Your answers pointed me to a refinement that is closer to what I want: rm(list=intersect(ls(".GlobalEnv"),ls("package:reedgraph")), pos=".GlobalEnv") This only removes items that are "masked" by GlobalEnv from my pa

Re: [R] problem with package development and older defs earlier in search order

2012-11-09 Thread Martin J Reed
Rolf and Duncan Many thanks. Your answers pointed me to a refinement that is closer to what I want: rm(list=intersect(ls(".GlobalEnv"),ls("package:reedgraph")), pos=".GlobalEnv") This only removes items that are "masked" by GlobalEnv from my package. As this is a bit long for some of th

Re: [R] problem with package development and older defs earlier in search order

2012-11-08 Thread Duncan Murdoch
On 12-11-07 7:11 PM, Martin J Reed wrote: Hi, I have a problem with a package I have developed in that functions do not get loaded due to older versions of the functions being in the .GlobalEnv’ fetched from .Rdata files stored from previous saved workspaces. I need to be able to fix this som

Re: [R] problem with package development and older defs earlier in search order

2012-11-07 Thread Rolf Turner
Suggestions: (1) Work in a different directory (so that you will have a different --- initially empty) .RData file. (2) Or: Clean up the .Rdata file in the directory that you are currently using; rm(list=ls()) does this for you. Every so slightly dangerous! :-) (3) Possibly: Before doin

[R] problem with package development and older defs earlier in search order

2012-11-07 Thread Martin J Reed
Hi, I have a problem with a package I have developed in that functions do not get loaded due to older versions of the functions being in the .GlobalEnv’ fetched from .Rdata files stored from previous saved workspaces. I need to be able to fix this somehow when I load the package. I do not want