Skip to content

use <attach> to dynamically export optional components in the search space #34

Open
@bedantaguru

Description

@bedantaguru

Following is the prototype

nev <- new.env()

get_new_var <- function(){

  attach(nev, pos = 2L, name = "pkg:internals")
}


nev$`%+%` <- function(x, y){
  x*y
}

Note that the above needs to be tuned for the fact that it does not detach on the unload of the package.

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