You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making drake workflow-as-package, and so changes in package functions need to be tracked. For that, I am following the instructions in chapter 7.5 of the drake book, namely the usage of envir = getNamespace("<pkg>"). However, this only works for make(), but not for drake_config() used in _drake.R file sourced by r_make(). In the latter, pipeline execution gets stuck on a first target.
Reproducible example
For reprex I am using https://github.com/januz/drakepkg. To avoid pollution of system library, I am using renv (but it is not required to do so).
First we create a new renv project and install the required packages, including the bleeding edge version of drake:
if (!require("renv")) install.packages("renv")
renv::init()
Prework
Description
I am making
drake
workflow-as-package, and so changes in package functions need to be tracked. For that, I am following the instructions in chapter 7.5 of thedrake
book, namely the usage ofenvir = getNamespace("<pkg>")
. However, this only works formake()
, but not fordrake_config()
used in_drake.R
file sourced byr_make()
. In the latter, pipeline execution gets stuck on a first target.Reproducible example
For reprex I am using https://github.com/januz/drakepkg. To avoid pollution of system library, I am using
renv
(but it is not required to do so).First we create a new
renv
project and install the required packages, including the bleeding edge version ofdrake
:Now restart your R session and continue:
Let's create
_drake.R
:And run the pipeline:
It gets stuck on the first target:
Expected result
The execution should not get stuck 🙂
Session info
Show
Thanks in advance for looking into this! 😊
The text was updated successfully, but these errors were encountered: