powered by
Test whether an .apsimx file is XML or json
apsimx_filetype(file = "", src.dir = ".")
‘xml’, ‘json’ or ‘unknown’
file ending in .apsimx to be tested
directory containing the .apsimx file to be tested; defaults to the current working directory
# \donttest{ extd.dir <- system.file("extdata", package = "apsimx") apsimx_filetype("Wheat.apsimx", src.dir = extd.dir) # }
Run the code above in your browser using DataLab