attach_source()
now allows the R scripts to containlibrary()
calls, and have functions defined in the script "see" thelibrary()
calls. R scripts are now first sourced into anew.env(parent = .GlobalEnv)
, and then all symbols are subsequently copied over into a (different) attached environment. You can restore the old behavior, where the scripts are evaluated in an already attached environment, withattach_source(parent = NULL)
.
-
attach_source()
now allows scripts to define a.mask.OK
object to a character vector of names of objects that shouldn't be warned about whenwarn.conflicts=TRUE
. -
attach_source()
now respects the existence of.conflicts.OK
, matching the behavior ofattach()
. -
attach_source()
gains aparent
argument, allow customizing the parent of the environment where scripts will be evaluated. (default,.GlobalEnv
)
- Regenerated documentation at request of CRAN for compatibility with HTML5.
- Fixed issue where
import_from
would not resolve reexported objects from packages.
- Added a
NEWS.md
file to track changes to the package.