Learn R Programming

dparser (version 1.3.1-12)

dpGetFile: Get file for dparser arguments

Description

Get file for dparser arguments

Usage

dpGetFile(file, fileext = "", envir = parent.frame(1))

Value

a list of three elements:

file

The file name of either the temporary file or the real file

use_file_name

If the file name was used (TRUE), or a temporary file was created(FALSE)

md5

md5 of the model

Arguments

file

- File to handle. This file can be:

  • an actual file.

  • a character string. In this case, a temporary file is created with the character string.

  • A bracket {} enclosed R expression. In this case the contents of the expressions is put into a temporary file.

  • A function. In this case the contents of the function body are put into the temporary file.

fileext

file extension of temporary file to create

envir

Environment to deparse variables

Author

Matthew L. Fidler