Skip to content

golem::document_and_reload is not using get_golem_config to figure out where the golem configuration is #887

@harell

Description

@harell

Hi

Thanks for the great work.

Given I have moved the default "./inst/golem-config.yml" to "./inst/config/golem.yml"
AND declare the configuration file path in "/R/get_golem_config.R"
When I run "./dev/run_dev.R"
Then script fails to find the config file in the updated address

Failure Message

image

get_golem_config

get_golem_config <- function(
  value,
  config = Sys.getenv("GOLEM_CONFIG_ACTIVE", Sys.getenv("R_CONFIG_ACTIVE","default")),
  use_parent = TRUE,
  # Modify this if your config file is somewhere else
  file = app_sys("config/golem.yml")
) {
  config::get(
    value = value,
    config = config,
    file = file,
    use_parent = use_parent
  )
}

Note I updated file = app_sys("config/golem.yml") from its original file = app_sys("golem-config.yml")

Failure Traceback

image

  • None of the functions above uses get_golem_config to retrieve information from the configuration file.

Please advise how to change the location of the yml file and run /run_dev.R successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions