Skip to content

Model template path cannot be changed using the PMoptions #314

@R-garreau

Description

@R-garreau

Describe the bug
The template path cannot be changed using the PMoptions

which can create the following error during compilation without any possibility to modify it:

ℹ Compiling model...
Error in `self$compile()`:
✖ Template path C:\Users\rommt\AppData\Local\Temp\exa_tmp/template does not exist or is not writable.
ℹ Please set the template path with `setPMoptions()` (choose Compile Options), to an existing, writable folder.

Screenshots

In PMoption.R

  • line 482 : model_template_path is commented too
  • line 502 to 509 are commented (below)
      # # Reset model template path to default
      # shiny::observeEvent(input$reset_model_template, {
      #   shiny::updateTextAreaInput(
      #     session,
      #     inputId = "model_template_path",
      #     value   = system.file(package = "Pmetrics")
      #   )
      # })

Version information

  • OS: Windows
  • R: 4.5

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