Rev 27447 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{load}\alias{load}\alias{loadURL}\title{Reload Saved Datasets}\description{Reload the datasets written to a file with the function \code{save}.}\usage{load(file, envir = parent.frame())loadURL(url, envir = parent.frame(), quiet = TRUE, \dots)}\arguments{\item{file}{a connection or a character string giving the name of thefile to load.}\item{envir}{the environment where the data should be loaded.}\item{url}{a character string naming a URL.}\item{quiet, \dots}{additional arguments to\code{\link[utils]{download.file}}.}}\details{\code{load} can load \R objects saved in the current or any earlierformat. It can read a compressed file (see \code{\link{save}})directly from a file or from a suitable connection.\code{loadURL} is a convenience wrapper which downloads a file, loadsit and deletes the downloaded copy.}\value{A character vector of the names of objects created, invisibly.}\seealso{\code{\link{save}}, \code{\link[utils]{download.file}}.}\examples{## save all datasave(list = ls(), file= "all.Rdata")## restore the saved values to the current environmentload("all.Rdata")## restore the saved values to the user's workspaceload("all.Rdata", .GlobalEnv)\dontrun{## This example may not still be available## print the value to see what objects were created.print(loadURL("http://hesweb1.med.virginia.edu/biostat/s/data/sav/kprats.sav"))}}\keyword{file}