How to run golem app as background job by invoking run_dev()?

Open
#1,145 3 comments 0 reactions 1 assignee View on GitHub

@ColinFay is already working on this.

Since Jun 18, 2024.

Assessment

This issue has not been assessed yet.

Description

enhancement

I prefer to have my shiny apps run as a background job so that the console remains free. Is there a way to change the way run_dev() works in order to make that the default?

In addition, I think that this would have the added benefit of ensuring that the app runs in a clean environment, without having to clean the interactive environment, allowing the console environment to stay as is. I use golem::detach_all_attached() and rm(list=ls(all.names = TRUE)) in run_dev.R to ensure that the app runs in a clean environment each time. However, this can be slightly sub-optimal for development because if I want to do some testing/debugging in the console without having to specify the package with package::function(), it means that every time I run the app, I have to reload any libraries (usually library(tidyverse)) to avoid this during interactive coding.

Note - sorry, I didn't mean to label this as a bug or assign @ColinFay, and I"m not able to delete it to post as a feature request.

Dominant language
R
Stars
947
Forks
135
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ThinkR-open/golem

All issues in ThinkR-open/golem

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.