Feature Request: Persistent chattr::chattr_app() in RStudio IDE pane?
Thank you for the great chattr package to make it easy to launch LLM chats from R!
Perhaps related to https://github.com/rstudio/rstudio/issues/13671, is there a way to have two panes open (and running 2 processes accordingly) simultaneously within the RStudio IDE:
-
Console- running iterative R code chunks - E.g.,
Chat(Viewer, but persistent) - ask questions/debugging error messages etc while iterating on ^
Currently, I am terminating the app in Viewer to get back my Console, then needing to manually restart it, so I find myself reaching for VSCode for a persistent version of (2). I've reviewed other interfaces, but would love to find out I've overlooked something! 😄
Hi, yeah, have you tried making the app run as an RStudio job? That way it won't block your session. You just have to set the argument to 'true':
chattr::chattr_app(as_job = TRUE)
The trade-off is that the app will not be aware of which document you have opened, so only the 'copy' button will show up in this mode. The 'send to document' will not appear.
Oh, got it! That definitely works to keep the Console available and launch as a background job. However, when I go to knit a .Rmd, the rendered HTML file drops the chat from the Viewer pane, so would need to re-launch chattr.
I also see the the following when the knitting kicks off, but that's likely moreso a Workbench launcher issue not directly related to chattr :
Hi, yeah, have you tried making the app run as an RStudio job? That way it won't block your session. You just have to set the argument to 'true':
chattr::chattr_app(as_job = TRUE)The trade-off is that the app will not be aware of which document you have opened, so only the 'copy' button will show up in this mode. The 'send to document' will not appear.
great suggestion. This is what I was looking for!