Closed
Description
- Add a layer of redirection so the test code calls the type of project (eg, "simple read-write") instead of the
project_id
of a specific server. - This will allow swapping of credential files that swap servers.
starter code for loading yaml:
system.file("misc/project-redirection.yml", package = "REDCapR") |>
yaml::yaml.load_file(
handlers = list(map = \(x) tibble::as_tibble(x))
) |>
dplyr::bind_rows() |>
tidyr::unnest(projects) |>
tidyr::pivot_longer(
cols = -c("instance", "credential_file"),
names_to = "tag",
values_to = "project_id"
) |>
tidyr::drop_na(project_id)
Activity