search for: addfinalizer

Displaying 6 results from an estimated 6 matches for "addfinalizer".

2019 Jun 08
2
Determining the exit code of an "almost finished" R script
On Sat, Jun 8, 2019 at 2:13 PM Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > > On 08/06/2019 7:42 a.m., Gergely Dar?czi wrote: > > Dear All, > > > > I'm using "reg.finalizer" in a function that is to be called in R scripts > > to do some cleanup on success. I have not found a way to run the function > > only if the script run without
2019 Jun 08
0
Determining the exit code of an "almost finished" R script
...triggered by garbage collections, and those can happen asynchronously, not under your control. It is nice to have all code for some purpose in one place, so if you really want that, you could put together your own explicitly called finalizer, something like this: finalizers <- list() addFinalizer <- function(fn) { finalizers <<- c(finalizers, list(fn)) } runFinalizers <- function() { for (i in rev(seq_along(finalizers))) { # Run in reverse order finalizers[[i]]() # Call the finalizer finalizers[[i]] <- NULL # Allow related objects to be re...
2013 Mar 20
1
htmlParse (from XML library) working sporadically in the same code
...ogical(asText), as.logical(trim), as.logical(validate), as.logical(getDTD), as.logical(isURL), as.logical(addAttributeNamespaces), as.logical(useInternalNodes), as.logical(isHTML), as.logical(isSchema), as.logical(fullNamespaceInfo), as.character(encoding), as.logical(useDotNames), xinclude, error, addFinalizer, as.integer(options), PACKAGE = "XML") By the way, readHTMLTable(htmlParse(url)) works fine on other pages, so the problem is somehow related to this page.  I am using 64-bit  R.15.3 version on windows machine Thanks much Andre [[alternative HTML version deleted]]
2011 Jun 07
1
XML segfault on some architectures
...asText), as.logical(trim), as.logical(validate), as.logical(getDTD), as.logical(isURL), as.logical(addAttributeNamespaces), as.logical(useInternalNodes), FALSE, as.logical(isSchema), as.logical(fullNamespaceInfo), as.character(encoding), as.logical(useDotNames), xinclude, error, addFinalizer, PACKAGE = "XML") 2: xmlTreeParse(fileName) Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace Selection:
2012 May 15
1
KEGGSOAP installation error
...asText), as.logical(trim), as.logical(validate), as.logical(getDTD), as.logical(isURL), as.logical(addAttributeNamespaces), as.logical(useInternalNodes), FALSE, as.logical(isSchema), as.logical(fullNamespaceInfo), as.character(encoding), as.logical(useDotNames), xinclude, error, addFinalizer, PACKAGE = "XML") 2: xmlParse(url) 3: parseSchemaDoc(fileName) 4: processWSDL("http://soap.genome.jp/KEGG.wsdl") 5: fun(libname, pkgname) 6: doTryCatch(return(expr), name, parentenv, handler) 7: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 8: tryCatchList(expr, cla...
2018 Mar 22
1
how to add a child to a child in XML
Just to clarify and hopefully catch the attention of the maintainer: The newXMLNode function is not mentioned in: https://cran.r-project.org/web/packages/XML/XML.pdf which supposedly describes all functions in the package. Stephen From: Ben Tupper [mailto:btupper at bigelow.org] Sent: Thursday, March 22, 2018 10:40 AM To: Bond, Stephen Cc: r-help Subject: Re: [R] how to add a child to a