tf <- file.path(tempdir(), "Hogwarts.rvi")
# Numeric example
rvn_write_Raven_label('Duration', filename=tf, value=365)
# Hydrologic Processes
rvn_write_Raven_label('HydrologicProcesses', tf)
# String example, with indent
rvn_write_Raven_label('SnowBalance', filename = tf,
value = paste('SNOBAL_HMETS', 'MULTIPLE', 'MULTIPLE'),
indent_level = 1)
# Preview file
readLines(tf)
Run the code above in your browser using DataLab