Learn R Programming

RavenR (version 2.2.0)

rvn_write_Raven_header: Write common Raven file header

Description

Writes the common Raven file header to file. All lines are Appended.

Usage

rvn_write_Raven_header(
  filename,
  filetype,
  author = NULL,
  creationDate = TRUE,
  textlen = 40
)

Value

TRUE

returns TRUE if executed successfully

Arguments

filename

Name of the file, with extension

filetype

File extension, Encoding, Raven version (e.g. "rvp ASCII Raven 2.9.1")

author

Name of file author (optional)

creationDate

Bool of whether creation date should be added to header. (default TRUE)

textlen

Length of lines (default: 40, used to right-align text)

Author

Leland Scantlebury, leland@scantle.com

Examples

Run this code
tf <- file.path(tempdir(), 'HogwartsBasin.rvp')
rvn_write_Raven_header(filename = tf,
                    filetype = 'rvp ASCII Raven 2.9.1',
                    author   = 'Harry Potter')

# view file
readLines(tf)

Run the code above in your browser using DataLab