Re: [Rd] Is it a good idea or even possible to redefine attach?

2014-08-05 Thread Winston Chang
On Tue, Aug 5, 2014 at 4:37 PM, Grant Rettke wrote: > > That is delightful. > > When I run it like this: > • Start R > • Nothing in .Rprofile > • Paste in your code > ╭ > │ gcrenv <- new.env() > │ gcrenv$attach.old <- attach > │ gcrenv$attach <- function(...){stop("NEVER USE ATTACH")} > │ base

Re: [Rd] More than one package document with the same name

2014-08-05 Thread John McKown
On Tue, Aug 5, 2014 at 5:47 PM, Davison, Jerry wrote: > Hi, > > I sent this to the Bioconductor mailing list (q.v.), replies recommended this > forum. Here it is: > A suggestion. Typically a package provides documentation of two types, one or > more vignettes and a reference manual; and they hav

[Rd] More than one package document with the same name

2014-08-05 Thread Davison, Jerry
Hi, I sent this to the Bioconductor mailing list (q.v.), replies recommended this forum. Here it is: A suggestion. Typically a package provides documentation of two types, one or more vignettes and a reference manual; and they have the same file name, PackageName.pdf. When downloaded some fi

Re: [Rd] Is it a good idea or even possible to redefine attach?

2014-08-05 Thread Grant Rettke
That is delightful. When I run it like this: • Start R • Nothing in .Rprofile • Paste in your code ╭ │ gcrenv <- new.env() │ gcrenv$attach.old <- attach │ gcrenv$attach <- function(...){stop("NEVER USE ATTACH")} │ base::attach(gcrenv, name="gcr", warn.conflicts = FALSE) ╰ • I get exactly w

Re: [Rd] Is it a good idea or even possible to redefine attach?

2014-08-05 Thread Winston Chang
On Tue, Aug 5, 2014 at 1:49 PM, Grant Rettke wrote: > > Hi, > > Today I got curious about whether or not I /could/ remove `attach' from > my system so: > - Backed it up > - Implemented a new one > - Like this > > , > | attach.old <<- attach > | attach <<- function(...) {stop("NEVER USE ATTACH"

Re: [Rd] Is it a good idea or even possible to redefine attach?

2014-08-05 Thread Ista Zahn
On Tue, Aug 5, 2014 at 2:49 PM, Grant Rettke wrote: > Hi, > > Today I got curious about whether or not I /could/ remove `attach' from > my system so: > - Backed it up > - Implemented a new one > - Like this > > , > | attach.old <<- attach > | attach <<- function(...) {stop("NEVER USE ATTACH")}

[Rd] Is it a good idea or even possible to redefine attach?

2014-08-05 Thread Grant Rettke
Hi, Today I got curious about whether or not I /could/ remove `attach' from my system so: - Backed it up - Implemented a new one - Like this , | attach.old <<- attach | attach <<- function(...) {stop("NEVER USE ATTACH")} ` I got the error: , | Error: cannot change value of locked bi

[Rd] Minor documentation change for assign

2014-08-05 Thread Grant Rettke
Good afternoon, Today I was reading the documentation , | help('<<-'); ` . The passage (I added the asterisks) The operators '' are normally only used in functions, and cause a search *to* made through parent environments for an existing definition of the variable bein