Skip to content

Dependent args function is not optional... #14

@leavesandlemmas

Description

@leavesandlemmas
library(BioCro)
library(BioCroValidation)


objective_function(
    soybean,
    list(example1 = list( 
        data = within(soyface_biomass$ambient_2002,  time <- (DOY - 1)* 24),
        drivers = soybean_weather[['2002']],
        weight = 1
    )),
    independent_args = list(
        RL_at_25 = soybean$parameters$RL_at_25
    ),
    verbose_startup=TRUE
)

This code returns the following error message:

The independent arguments and their initial values:

List of 1
 $ RL_at_25: num 1.28

The dependent arguments and their initial values:

Error in dependent_arg_function(independent_args) : 
  could not find function "dependent_arg_function"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions