dbfile.posterior.check.Rd
Function to check to see if a file exists in the dbfiles table as an input
dbfile.posterior.check(pft, mimetype, formatname, con, hostname = PEcAn.remote::fqdn())
pft | the name of the pft that this data is applicable to |
---|---|
mimetype | the mime-type of the file |
formatname | the name of the format to distinguish between simmilair mime-types |
con | database connection object |
hostname | the name of the host where the file is stored, this will default to the name of the current machine |
data.frame with the id, filename and pathname of the posterior that is requested
This will check the dbfiles, inputs, machines and formats tables to see if the file exists
# NOT RUN { dbfile.posterior.check(pft, 'application/x-RData', 'traits', dbcon) # }