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