Skip to content

PM_model$new cannot handle constant values in the #PRI block #307

@Siel

Description

@Siel

Describe the bug
When using PM_model$new with a model.txt that contains constant values in the #PRI block it fails:

> mod1 <- PM_model$new("model.txt")
Error in `FUN()`:
✖ Constants should be defined in the appropriate block, not #PRI.
Run `rlang::last_trace()` to see where the error occurred.
> 

Expected behavior
It should load the model correctly

Version information

  • OS: Tested on MacOs
  • R: 4.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions