powered by
sys.source()
attach
sourceAttach(file, pos=2, name = paste(abbreviate(gsub(fsep,"", dirname(file)), 12, method="both.sides"), basename(file), sep=fsep), keep.source = getOption("keep.source.pkgs"), warn.conflicts = TRUE)
attach()
sys.source
source
sourceAttach(system.file("test-tools.R", package="Matrix")) search() # shows the new "data base" at position 2 ls(pos = 2)
Run the code above in your browser using DataLab