Learn R Programming

RavenR (version 2.2.3)

rvn_rvi_commandupdate: Update command in Raven input file

Description

Updates the provided rvi file with the command and value provided.

Usage

rvn_rvi_commandupdate(
  filename = NULL,
  command = NULL,
  value = NULL,
  outputfile = NA
)

Value

returns TRUE if run successfully

Arguments

filename

the name of the .rvi file (with .rvi extension included), either relative to the working directory or absolute.

command

the rvi command with preceeding colon to update

value

value of the command to update

outputfile

if writing to a new file, otherwise filename is overwritten

Author

James R. Craig, University of Waterloo

See Also

rvn_rvi_read to read and process rvi files with RavenR

Examples

Run this code
  # load example rvi file
  ff <- system.file("extdata","Nith.rvi", package="RavenR")
  tf <- tempfile(fileext=".rvi")

  rvn_rvi_commandupdate(filename=ff,
  command=":StartDate",
  value="2022-10-01 00:00:00",
  outputfile=tf)

Run the code above in your browser using DataLab