# \donttest{
data("NIRcannabis")
filename <- file.path(tempdir(), "NIRcannabis.tsv")
proximate_write_data(
x = NIRcannabis,
file = filename,
id = NIRcannabis$ID,
spc = "spc",
spc_round = 8,
barcode = NIRcannabis$Barcode,
properties = c("CBDA", "THCA", "CBD", "THC"),
note = NIRcannabis$Note,
recipe = NIRcannabis$Recipe,
created = NIRcannabis$Begin
)
# Since we do not change anything, the following produces the same tsv:
proximate_write_data(
x = NIRcannabis,
file = filename,
properties = c("CBDA", "THCA", "CBD", "THC")
)
# Delete the file
file.remove(filename)
# }
Run the code above in your browser using DataLab