Note that this is really rather experimental, and you probably shouldn't use it yet. Once complete, this function will allow a datavolley file to be read in via dv_read
, modified by the user, and then rewritten back to a datavolley file.
At this stage, most modifications to the datavolley object should make it back into the rewritten file. However, the scouted code (in the code
column) is NOT yet updated to reflect changes that might have been made to other columns in the datavolley object.
Arguments
- x
datavolley: a datavolley object as returned by
dv_read
- file
string: the filename to write to. If not supplied, no file will be written but the dvw content will be returned
- text_encoding
string: the text encoding to use
Examples
if (FALSE) {
x <- dv_read(dv_example_file())
outfile <- tempfile()
dv_write(x, outfile)
}