tests/loadToEnv.R

library("R.utils")

file <- tempfile()

x <- 1:10
save(x, file=file)

env <- loadToEnv(file)
print(env)
print(ls(envir=env))

file.remove(file)

Try the R.utils package in your browser

Any scripts or data that you put into this service are public.

R.utils documentation built on Nov. 18, 2023, 1:09 a.m.