We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

stat.CO

Change to browse by:

References & Citations

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Statistics > Computation

Title: A method for deriving information from running R code

Abstract: It is often useful to tap information from a running R script. Obvious use cases include monitoring the consumption of resources (time, memory) and logging. Perhaps less obvious cases include tracking changes in R objects orcollecting output of unit tests. In this paper we demonstrate an approach that abstracts collection and processing of such secondary information from the running R script. Our approach is based on a combination of three elements. The first element is to build a customized way to evaluate code. The second is labeled \emph{local masking} and it involves temporarily masking auser-facing function so an alternative version of it is called. The third element we label \emph{local side effect}. This refers to the fact that the masking function exports information to the secondary information flow without altering a global state. The result is a method for building systems in pure R that lets users create and control secondary flows of information with minimal impact on their workflow, and no global side effects.
Comments: 11 pages, 1 figure. Accepted for publication by the R Journal (2020-02-20)
Subjects: Computation (stat.CO); Programming Languages (cs.PL)
Cite as: arXiv:2002.07472 [stat.CO]
  (or arXiv:2002.07472v2 [stat.CO] for this version)

Submission history

From: Mark van der Loo [view email]
[v1] Tue, 18 Feb 2020 10:23:59 GMT (34kb,D)
[v2] Mon, 24 Feb 2020 15:32:24 GMT (43kb,D)

Link back to: arXiv, form interface, contact.