R/xport.reader.R

Defines functions xport.reader

Documented in xport.reader

#' @describeIn preinstalled.readers Read an XPort file with a \code{.xport} file extension.
xport.reader <- function(data.file, filename, variable.name)
{
  .require.package('foreign')

  assign(variable.name,
         foreign::read.xport(filename),
         envir = .TargetEnv)
}

Try the ProjectTemplate package in your browser

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

ProjectTemplate documentation built on July 31, 2021, 5:07 p.m.