mlverse / chattr

https://mlverse.github.io/chattr/
Other
200 stars 20 forks source link

Running `chattr_app(as_job = TRUE)` in Positron generates as error #111

Open EllaKaye opened 5 months ago

EllaKaye commented 5 months ago

Hi. I sometimes find it useful to set as_job = TRUE when calling chattr_app(). That works great in RStudio but generates an error in Positron. Seems this is because the function uses the rstudioapi package:

Error:
! Function runScriptJob not found in RStudio
Hide Traceback
    ▆
 1. └─chattr::chattr_app(as_job = TRUE)
 2.   └─rstudioapi::jobRunScript(path = run_file)
 3.     └─rstudioapi::callFun(...)

I know that it's very early days for Positron, but are there plans to update chattr so that all the functionality is available in Positron as well, or do the differences between RStudio and Positron make that tricky?

edgararuiz commented 4 months ago

Hi yes, this functionality is not yet available in Positron, so I'd have to return a better error or abort message