One option that I have not seen mentioned yet, and may be the most
similar to the Python approach is to name the "Invisible" function
starting with a "." (the period). Then the function will not appear
when you do `ls()` but is still accessible. It however is not limited
in scope and it is still
On 14-01-31 5:09 PM, Rolf Turner wrote:
On 01/02/14 08:13, Duncan Murdoch wrote:
On 31/01/2014 1:46 PM, Paul A. Steckler wrote:
I'm fairly new to R, and have checked the R FAQ and done an
RSiteSearch for help
on this topic, to no avail.
I want to write some R code that has functions at the top
I think you will find that using namespaces and export directives are
a better way of controlling visibility with packages. That is their
intended purpose.
Cheers,
Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
"Data is not information. Information is not knowledge. And know
Thanks for the suggestions.
I'm going to need to create an R package, eventually, so I'll use that
mechanism to control visibility.
-- Paul
On Fri, Jan 31, 2014 at 11:13 AM, Duncan Murdoch
wrote:
> On 31/01/2014 1:46 PM, Paul A. Steckler wrote:
>>
>> I'm fairly new to R, and have checked the R
On 01/02/14 08:13, Duncan Murdoch wrote:
On 31/01/2014 1:46 PM, Paul A. Steckler wrote:
I'm fairly new to R, and have checked the R FAQ and done an
RSiteSearch for help
on this topic, to no avail.
I want to write some R code that has functions at the top-level that
are not visible when
the code
On 31/01/2014 1:46 PM, Paul A. Steckler wrote:
I'm fairly new to R, and have checked the R FAQ and done an RSiteSearch for help
on this topic, to no avail.
I want to write some R code that has functions at the top-level that
are not visible when
the code is loaded. So in
fun1 <- function(...
I'm fairly new to R, and have checked the R FAQ and done an RSiteSearch for help
on this topic, to no avail.
I want to write some R code that has functions at the top-level that
are not visible when
the code is loaded. So in
fun1 <- function(...) { ... }
fun2 <- function(...) { ... fun1 ..
7 matches
Mail list logo