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

[R] Namespaces without packages?

2012-09-13 Thread Ray Griner
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 all the functions I wrote into the user's namespace. So if I

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

[R] Namespaces of imported packages

2008-11-18 Thread Hutchinson,David [PYR]
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: package 'bitops' does not have a name sp

Re: [R] namespaces

2008-10-02 Thread Gabor Grothendieck
l Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> project.org] On Behalf Of Alexy Khrabrov >> Sent: Thursday, October 02, 2008 9:03 AM >> To: [EMAIL PROTECTED] >> Subject: [R] namespaces >> >> I'd like to control my namespace thoro

Re: [R] namespaces

2008-10-02 Thread Greg Snow
Healthcare [EMAIL PROTECTED] 801.408.8111 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of Alexy Khrabrov > Sent: Thursday, October 02, 2008 9:03 AM > To: [EMAIL PROTECTED] > Subject: [R] namespaces > > I'd like to co

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

[R] namespaces

2008-10-02 Thread Alexy Khrabrov
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 this? Cheers, Alexy