# Create example batch file path
batch_file_path <- paste0(tempdir(),'/DSSBatch.V47')
# Write example batch file
write_dssbatch(x='UFGA0601.BMX', trtno=1:4, file_name = batch_file_path)
# Construct tibble for DSSAT batch file
batch_tbl <- data.frame(FILEX='UFGA0601.BMX',
TRTNO=1:4,
RP=1,
SQ=0,
OP=0,
CO=0)
# Write example batch file
write_dssbatch(batch_tbl, file_name = batch_file_path)
Run the code above in your browser using DataLab