inst/example_data/foo.reader.R

foo.reader <- function(data.file, filename, variable.name)
{
  assign(variable.name,
         "bar",
         envir = .GlobalEnv)
  return()
	
}

.add.extension('foo', 'foo.reader')

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.