Learn R Programming

apsimx (version 2.2)

apsimx_filetype: Test file format for .apsimx files

Description

Test whether an .apsimx file is XML or json

Usage

apsimx_filetype(file = "", src.dir = ".")

Arguments

file

file ending in .apsimx to be tested

src.dir

directory containing the .apsimx file to be tested; defaults to the current working directory

Value

‘xml’, ‘json’ or ‘unknown’

Examples

Run this code
# 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