Skip to content

[Bug]: Custom params disappear from params chunk after rerendering #422

@sbreitbart-NOAA

Description

@sbreitbart-NOAA

Describe the bug

In the example below, I added a couple of custom parameters to a basic asar report. They show up as expected: in the yaml and doc_parameters chunk.

When I rerender the skeleton by adding a coauthor, I select the console option to not update my preamble, because the coauthor is not related to the preamble at all- only the yaml. However, the params disappear from the doc_parameters chunk.

Describe how to reproduce the bug

asar::create_template(
  param_names = c("fleet_a", "fleet_b"),
  param_values = c("a long fleet name", "b long fleet name")
)

asar::create_template(
  rerender_skeleton = TRUE,
  file_dir = file.path(getwd(), "report"),
  authors = c("Sam Schiano" = "OST")
)

Screenshots

No response

Which OS are you seeing the problem on?

Windows

Which version of asar are you seeing the problem on?

2.0.2

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage_neededThis issue needs review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions