translate.dcf: Read a DCF file into an R list.

Description Usage Arguments Details Value Examples

View source: R/translate.dcf.R

Description

This function will read a DCF file and translate the resulting data frame into a list. The DCF format is used throughout ProjectTemplate for configuration settings and ad hoc file format specifications.

Usage

1
translate.dcf(filename)

Arguments

filename

A character vector specifying the DCF file to be translated.

Details

The content of the DCF file are stored as character strings. If the content is placed between the back tick character , then the content is evaluated as R code and the result returned in a string

Value

Returns a list containing the entries from the DCF file.

Examples

1
2
3
library('ProjectTemplate2')

## Not run: translate.dcf(file.path('config', 'global.dcf'))

connectedblue/ProjectTemplate2 documentation built on May 17, 2019, 2:46 p.m.