Re: [R] Namespaces without packages?

2012-09-14 Thread Uwe Ligges
On 13.09.2012 23:47, R. Michael Weylandt wrote: On Thu, Sep 13, 2012 at 6:44 PM, Ray Griner wrote: Dear R-help list - Here's my problem. I have some programs I want to share with other users in the department. I currently tell users to use source("/path/to/myfile.R") to include the progr

Re: [R] Namespaces without packages?

2012-09-13 Thread R. Michael Weylandt
On Thu, Sep 13, 2012 at 6:44 PM, Ray Griner wrote: > Dear R-help list - > > Here's my problem. I have some programs I want to share with other users in > the department. I currently tell users to use source("/path/to/myfile.R") to > include the program. If I understand correctly, this puts al

Re: [R] Namespaces of imported packages

2008-11-18 Thread Martin Morgan
Uwe Ligges <[EMAIL PROTECTED]> writes: > Hutchinson,David [PYR] wrote: >> Hi, >> I am trying to build an R package. My existing code makes use of >> the >> bitops and chron packages. So I have included statements to import >> required functionality into the NAMESPACE file using import(). When I >

Re: [R] Namespaces of imported packages

2008-11-18 Thread Uwe Ligges
Hutchinson,David [PYR] wrote: Hi, I am trying to build an R package. My existing code makes use of the bitops and chron packages. So I have included statements to import required functionality into the NAMESPACE file using import(). When I run Rcmd build, and error is generated "Error: packa

Re: [R] namespaces

2008-10-02 Thread Gabor Grothendieck
The trick about setting the windows title is quite nifty and I've just added that to my profile. Just wanted to add two additional ways to start up R in the current directory on Windows. They are provided in the batchfiles distribution. See home page at: http://batchfiles.googlecode.com 1. I

Re: [R] namespaces

2008-10-02 Thread Greg Snow
Here is what I do: I have a different folder/directory for each of my different projects, then I start a new R session for each project that I am working on. If you start R with the folder/directory as the current working directory then the workspace for that project is loaded (and the script

Re: [R] namespaces

2008-10-02 Thread Gabor Grothendieck
On Thu, Oct 2, 2008 at 11:26 AM, Alexy Khrabrov <[EMAIL PROTECTED]> wrote: > Yes, I could prefix everything with taskN$, but that's boring! Can I now > attach and detach tasks to have one prefix-less, since they look like > dataframes? Read the proto vignette and other info to get a better unders

Re: [R] namespaces

2008-10-02 Thread Duncan Murdoch
On 02/10/2008 11:03 AM, Alexy Khrabrov wrote: I'd like to control my namespace thoroughly, separated by task. Is there a way, in R session, to introduce namespaces for tasks dynamically and switch them as needed? Or, is there a combination of load/save workspace steps which can facilitate

Re: [R] namespaces

2008-10-02 Thread Uwe Ligges
What you mean is probably that you can have different workspaces. A Workspace is associated to the current R session and is saved/loaded in the directory from which R is started. Note that Namespaces (for packages) in R have a different meaning. Best, Uwe Ligges Alexy Khrabrov wrote: I'd like

Re: [R] namespaces

2008-10-02 Thread Gabor Grothendieck
You could have an environment for each task and place your objects for each task in its environment. Note that this is getting close to object oriented ideas where each enviroment/task is an object containing your R variables and methods and the proto package can be used to facilitate that: libra

Re: [R] namespaces

2008-10-02 Thread Alexy Khrabrov
Yes, I could prefix everything with taskN$, but that's boring! Can I now attach and detach tasks to have one prefix-less, since they look like dataframes? What does proto buy us? To respond to Uwe here as well, I want dynamic task switching and *also* an ability to load and save task from