search for: set_cloenv

Displaying 3 results from an estimated 3 matches for "set_cloenv".

2001 Sep 16
1
Using closures in libraries
...ment. One way around this would be to do the replacement only for closures that have the same environment as the package environment. Basically change the relevant lines in envir.c (do_libfixup) with - while (p != R_NilValue) { if (TYPEOF(CAR(p)) == CLOSXP && CLOENV(CAR(p)) != lib) SET_CLOENV(CAR(p), env); p = CDR(p); } In case any one wonders, I know I could wrap the function in a list and call the function with foo[[1]]() - but it really does not look very natural. Closures are often so useful that it is desirable that they can be used from libraries. Can someone comment wheth...
2008 Aug 07
1
dput function (PR#12112)
Full_Name: Juan Gea Version: R version 2.6.2 OS: Fedora Core 6 Submission from: (NULL) (79.153.48.49) Abort: objeS <- matrix("AAA",1000000) class(objeS) outTxt <- textConnection("vaClob", open = "w", local = FALSE) dput(objeS,outTxt) close(outTxt) R version 2.6.2 (2008-02-08) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN
2009 Dec 16
2
What is the fastest way to see what are in an RData file?
Currently, I load the RData file then ls() and str(). But loading the file takes too long if the file is big. Most of the time, I only interested what the variables are in the the file and the attributes of the variables (like if it is a data.frame, matrix, what are the colnames/rownames, etc.) I'm wondering if there is any facility in R to help me avoid loading the whole file.