dbfile.input.check.Rd
Function to check to see if a file exists in the dbfiles table as an input
dbfile.input.check(
siteid,
startdate = NULL,
enddate = NULL,
mimetype,
formatname,
parentid = NA,
con,
hostname = PEcAn.remote::fqdn(),
exact.dates = FALSE,
pattern = NULL,
return.all = FALSE
)
the id of the site that this data is applicable to
the start date of the data stored in the file
the end date of the data stored in the file
the mime-type of the file
the name of the format to distinguish between simmilair mime-types
the id of the parent of the input
database connection object
the name of the host where the file is stored, this will default to the name of the current machine
setting to include start and end date in input query
text to seach for in the file name (default NULL = no check).
(Logical) If 'TRUE', return all files. If 'FALSE', return only the most recent files.
data.frame with the id, filename and pathname of the input that is requested
This will check the dbfiles, inputs, machines and formats tables to see if the file exists
if (FALSE) { # \dontrun{
dbfile.input.check(siteid, startdate, enddate, 'application/x-RData', 'traits', dbcon)
} # }