dbfile.insert.Rd
Function to insert a file into the dbfiles table
dbfile.insert(
in.path,
in.prefix,
type,
id,
con,
reuse = TRUE,
hostname = PEcAn.remote::fqdn()
)
Path to file directory
Filename prefix (not including directory)
One of "Model", "Posterior", "Input"
container_id of the input to be modified
database connection object
logical: If a record already exists, use it or create a new one?
the name of the host where the file is stored, this will default to the name of the current machine
id of the file that is written
This will write into the dbfiles and machines the required data to store the file
if (FALSE) { # \dontrun{
dbfile.insert('somefile.txt', 'Input', 7, dbcon)
} # }