Skip to content

Standard set of with functions #89

@hadley

Description

@hadley
with_something <- function(get, set) {
  function(new, code) { 
    old <- get()
    set(new)
    on.exit(set(old))
    force(code)
  }  
}

with_locale
with_env
with_libpaths
with_options
with_par
in_dir

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions