set_file: Internal function to set some STICS input file parameters

set_fileR Documentation

Internal function to set some STICS input file parameters

Description

Replace or set an input parameter from a pre-existing STICS input file. This function is called by some of the generic ⁠set_*⁠ functions under the hood.

Usage

set_file(filepath, param, value, add, variety = NULL)

Arguments

filepath

Path to the parameter file

param

Parameter name

value

New parameter value

add

Boolean. Append input to existing file (add to the list)

variety

Integer (variety index) or character (variety name)

Details

The function uses base::sys.call() to know from which function of the ⁠set_*⁠ family it is called, so it won't work properly if called by the user directly. This is why this function is internal.

Note

This function is not used for set_soil().

See Also

set_param().


VEZY/sticRs documentation built on Oct. 26, 2023, 7:37 a.m.