search for: globalenv

Displaying 20 results from an estimated 1382 matches for "globalenv".

2018 Mar 22
3
GlobalEnv error
Dear all May I know how to solve this problem? I have encountered this problem after I have logged out from Rstudio. Thank you Warning: namespace ?caret? is not available and has been replaced by .GlobalEnv when processing object ?fit.ann? Warning: namespace ?ggplot2? is not available and has been replaced by .GlobalEnv when processing object ?p1? Warning: namespace ?plotly? is not available and has been replaced by .GlobalEnv when processing object ?p? Warning: namespace ?easyGgplot2? is not availabl...
2018 Mar 22
0
GlobalEnv error
...22, 2018 at 2:07 PM, Haida <haidaharis at gmail.com> wrote: > Dear all > > May I know how to solve this problem? I have encountered this problem after > I have logged out from Rstudio. Thank you > > Warning: namespace ?caret? is not available and has been replaced > by .GlobalEnv when processing object ?fit.ann? > Warning: namespace ?ggplot2? is not available and has been replaced > by .GlobalEnv when processing object ?p1? > Warning: namespace ?plotly? is not available and has been replaced > by .GlobalEnv when processing object ?p? > Warning: namespace ?eas...
2014 Aug 06
3
portableParalleSeeds Package violation, CRAN exception?
...od the instructions about packages. Here's the part where the R check gives a Note * checking R code for possible problems ... NOTE Found the following assignments to the global environment: File ?portableParallelSeeds/R/initPortableStreams.R?: assign("currentStream", n, envir = .GlobalEnv) assign("currentStates", curStates, envir = .GlobalEnv) assign("currentStream", 1L, envir = .GlobalEnv) assign("startStates", runSeeds, envir = .GlobalEnv) assign("currentStates", runSeeds, envir = .GlobalEnv) assign("currentStream",...
2018 Mar 23
1
GlobalEnv error
...s at gmail.com> wrote: > >> Dear all >> >> May I know how to solve this problem? I have encountered this problem >> after >> I have logged out from Rstudio. Thank you >> >> Warning: namespace ?caret? is not available and has been replaced >> by .GlobalEnv when processing object ?fit.ann? >> Warning: namespace ?ggplot2? is not available and has been replaced >> by .GlobalEnv when processing object ?p1? >> Warning: namespace ?plotly? is not available and has been replaced >> by .GlobalEnv when processing object ?p? >> War...
2009 Jan 05
2
eval using a environment X but resultsin .GlobalEnv
Hello, Suppose I have an expression, E, which accesses some variables present in an environment V. I do this via eval(E,envir=V) however all assignments end up in V. I would like the results of assignments in E to end up in the .GlobalEnv ? Or at least the calling environment. Is there a quick way to this instead of iterating over all objects E and assigning into .GlobalEnv? Thank you Saptarshi -- Saptarshi Guha - saptarshi.guha at gmail.com
2012 Aug 05
2
setMethod sometimes fails to set package slot when signature has trailing 'ANY'
...uot;] with 4 slots ..@ .Data :function (x, y) ..@ target :Formal class 'signature' [package "methods"] with 3 slots .. .. ..@ .Data : chr [1:2] "A" "A" .. .. ..@ names : chr [1:2] "x" "y" .. .. ..@ package: chr [1:2] ".GlobalEnv" ".GlobalEnv" ..@ defined:Formal class 'signature' [package "methods"] with 3 slots .. .. ..@ .Data : chr [1:2] "A" "A" .. .. ..@ names : chr [1:2] "x" "y" .. .. ..@ package: chr [1:2] ".GlobalEnv" &quo...
2012 Nov 08
3
problem with package development and older defs earlier in search order
Hi, I have a problem with a package I have developed in that functions do not get loaded due to older versions of the functions being in the .GlobalEnv? fetched from .Rdata files stored from previous saved workspaces. I need to be able to fix this somehow when I load the package. I do not want to mess up the search order to fix the problem. How I got myself into this mess is that I started developing using a bunch of R files and a dynamic library...
2006 Jun 25
1
using withCallingHandlers, how to deal with warning( , immediate. = TRUE)?
...more complex to delay handling of warning messages, but basically, I manage it that way: > options(warning.expression = NULL) > options(warning.expression = NULL) > options(warning.expression = expression()) # Disable normal warnings > if (exists("last.warning", envir = .GlobalEnv)) + rm("last.warning", envir = .GlobalEnv) > withCallingHandlers(for (i in 1:3) {print(i); + warning("test", immediate. = (i < 2))}, + warning = function(w) { + if (exists("last.warning", envir = .GlobalEnv)) { + lwarn <- get("last.warnin...
2016 Jul 27
3
Model object, when generated in a function, saves entire environment when saved
In the below, I generate a model from an environment that isn't .GlobalEnv with a large object that is unrelated to the model generation. It seems to save the irrelevant object unnecessarily. In my actual use case, I am running and saving many models in a loop that each use a single large data.frame (that gets collapsed into a small data.frame for estimation), so removing...
2012 May 12
1
masked by GlobalEnv ???
...ke graphs and Aeventexhumed still works in the analysis. Can I ignore this message or do I need to do something about this? Jean > require(plyr) Loading required package: plyr > turtlehatch <- read.csv(file.choose()) > attach(turtlehatch) The following object(s) are masked _by_ '.GlobalEnv': Aeventexhumed, DeadHatch, ExDate, Hatchlings, MaxHatch, Oldeggs, Quadrat, QuadratEvent, ST0, ST1, ST2, ST3, ST4, Sector, Shells, TotalEggs -- View this message in context: http://r.789695.n4.nabble.com/masked-by-GlobalEnv-tp4628664.html Sent from the R help mailing list archive at N...
2008 Nov 25
2
dots methods: dispatch issues
...lowing code works as expected: ############################################################## > setGeneric("rbind", function(..., deparse.level=1) standardGeneric("rbind"), + signature = "...") Creating a generic for "rbind" in package ".GlobalEnv" (the supplied definition differs from and overrides the implicit generic in package "base": Signatures differ: (...), (deparse.level)) [1] "rbind" > rbind(1) [,1] [1,] 1 > rbind standardGeneric for "rbind" defined from package ".GlobalEnv&...
2012 Aug 12
2
"Masked by GlobalEnv"
hello everyone, i am getting problems in graph plotting. When i attach file after adding color attributes in my data set. i got problem of "GlobalEnv" and masked the followings. Like this >attach(machm) The following object(s) are masked _by_ '.GlobalEnv': coll, sp The following object(s) are masked from 'mach': angle, area, dis, plot, sp >xmach=dis*sin(angle/180*pi); ymach=dis*cos(angle/180*pi) >plot(xm...
2016 Jul 27
2
Model object, when generated in a function, saves entire environment when saved
...th, data=iris, subset=subset)$coef) } saveSize(tfun2(1:4)) #[1] 152 Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Jul 27, 2016 at 11:19 AM, William Dunlap <wdunlap at tibco.com> wrote: > One way around this problem is to make a new environment whose > parent environment is .GlobalEnv and which contains only what the > the call to lm() requires and to compute lm() in that environment. E.g., > > tfun1 <- function (subset) > { > junk <- 1:1e+06 > env <- new.env(parent = globalenv()) > env$subset <- subset > with(env, lm(Sepal.L...
2001 Oct 09
2
list of functions flagged with debug() or trace()
Hello all, Since I got no answer to my first mail, I suspect I did not formulate my question adequately, so I try again. In R, one can debug or trace a function 'foo' with debug(foo) or trace(foo), respectively. This leads to a special treatment of the function 'foo' until one enter undebug(foo) or untrace(foo). I would like to know if there is a convenient way to know at any
2016 Nov 15
2
Missing objects using dump.frames for post-mortem debugging of crashed batch jobs. Bug or gap in documentation?
...nt#9: f("parameter") # Called from: debugger.look(ind) # Browse[1]> g # [1] "global" # Browse[1]> while dumping to a file # Test script 2 g <- "global" f <- function(p) { l <- "local" dump.frames(to.file = TRUE, include.GlobalEnv = TRUE) } f("parameter") results in # > load("last.dump.rda") # > debugger() # Message: object 'server' not foundAvailable environments had calls: # 1: .GlobalEnv # 2: source("~/.active-rstudio-document", echo = TRUE) # 3: withVisible(ev...
2008 Dec 07
4
Finding the first value without warning in a loop
Dear R useRs, with the following piece of code i try to find the first value which can be calculated without warnings `test` <- function(a) { repeat { ## hide warnings suppressWarnings(log(a)) if (exists("last.warning", envir = .GlobalEnv)) { a <- a + 0.1 ## clear existing warnings rm("last.warning", envir = .GlobalEnv) } if(a > 5 || !exists("last.warning", envir = .GlobalEnv)) break } return(a) } if i run this with test(-3), i would expect a=0 as return value. Is it...
2017 May 07
2
deparse(substitute(x)) fails in implied call to an S3 print method
In an implied call to an S3 print method, deparse(substitute(x)) returns "x", regardless of the name of object in .GlobalEnv, as indicated in the following: > Xnamed <- 1 > class(Xnamed) <- 'name.x' > print.name.x <- function(x, ...){ + namex <- deparse(substitute(x)) + cat('How can I get the name of x in .GlobalEnv?\n', + 'deparse(substitute(x)) gives only ',...
2004 Sep 24
5
using tcltk in R under ESS/XEmacs on Windows
...the problem is... A while back I posted an R function to R-help: cd <- function (dir = tclvalue(tkchooseDirectory()), saveOld = FALSE, loadNew = TRUE) { stopifnot(require(tcltk)) if (saveOld) save.image(compress = TRUE) setwd(dir) rm(list = ls(all = TRUE, envir = .GlobalEnv), envir = .GlobalEnv) if (loadNew && file.exists(".RData")) { loaded <- load(".RData", envir = .GlobalEnv) return(invisible(loaded)) } where the default value for the `dir' argument is to run the tcltk directory chooser and get the directo...
2011 Sep 30
0
Warning messages upon new package loading
...ing seems to work just fine though, so I am wondering how to get rid of the warnings. Warning messages: 1: Class "frame" is defined (with package slot 'kiwixposepreprod') but no metadata object found to revise superClass information---not exported? Making a copy in package '.GlobalEnv' 2: Class "gTree" is defined (with package slot 'kiwixposepreprod') but no metadata object found to revise superClass information---not exported? Making a copy in package '.GlobalEnv' 3: Class "grob" is defined (with package slot 'kiwixposepreprod')...
2002 May 15
0
lib.fixup, .GlobalEnv, and R1.5.0 (PR#1556)
Full_Name: Mark Bravington Version: 1.5.0 OS: Windows 2000 Submission from: (NULL) (140.79.2.3) In R1.3.1, I used the following code inside a function to set a "path" attribute to .GlobalEnv: env_ pos.to.env( 1) attr( env, 'path')_ .Path # .Path is a named char vector of length 1 .Internal( lib.fixup( env, .GlobalEnv)) # adds the attribute And this works fine. But in R1.5.0, the same code (executed e.g. within a call to "local" from the command line) removes a...