{"id":17174983,"url":"https://github.com/jdblischak/wflow-build-undefined-variable","last_synced_at":"2026-01-05T20:08:51.121Z","repository":{"id":145860978,"uuid":"111029630","full_name":"jdblischak/wflow-build-undefined-variable","owner":"jdblischak","description":"Reproducible example of unexpected wflow_build behavior","archived":false,"fork":false,"pushed_at":"2017-11-16T23:05:10.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T01:27:55.499Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdblischak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-11-16T22:32:05.000Z","updated_at":"2017-11-16T22:32:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2c018df-fcf0-4a1f-91ca-09a2cff341d1","html_url":"https://github.com/jdblischak/wflow-build-undefined-variable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdblischak%2Fwflow-build-undefined-variable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdblischak%2Fwflow-build-undefined-variable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdblischak%2Fwflow-build-undefined-variable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdblischak%2Fwflow-build-undefined-variable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdblischak","download_url":"https://codeload.github.com/jdblischak/wflow-build-undefined-variable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245352091,"owners_count":20601093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T23:55:26.393Z","updated_at":"2026-01-05T20:08:51.024Z","avatar_url":"https://github.com/jdblischak.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# undefined\n\nThis repository reproduces a strange observation with the function `wflow_build()` of the [workflowr][] R package.\n\n## Description\n\nIf a function in a package has an undefined variable, and that variable is\ndefined in one of the enclosing environments, it will used that variable. In\ngeneral this is probably a bad idea, but if the purpose of the function is to\nreact to the current environment in some way, this may be desired behavior.\n\nThis works when using the \"Knit\" button in RStudio, `rmarkdown::render_site`,\nand `rmarkdown::render`. However, `wflow_build`, which calls\n`rmarkdown::render_site` via `callr::r_safe` does not allow this.\n\n## Instructions\n\n1. Clone this repo\n1. Install workflowr\n1. Build and install the package `undefined` with `devtools::install` (or Ctrl-Shift-B in RStudio)\n1. Open `analysis/undefined.Rmd` and run with RStudio \"Knit\" button (or `rmarkdown::render_site(\"analysis/undefined.Rmd\")`)\n1. Run `workflowr::wflow_build(\"analysis/undefined.Rmd\")`\n\nTo clean up, remove the fake package with `remove.packages(\"undefined\")`\n\n[workflowr]: https://github.com/jdblischak/workflowr\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdblischak%2Fwflow-build-undefined-variable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdblischak%2Fwflow-build-undefined-variable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdblischak%2Fwflow-build-undefined-variable/lists"}