Questions tagged [golem]

{golem} is an R framework for building robust application with Shiny. You can use the [golem] tag for questions about building or deploying Shiny application using {golem}. Question can either concern general concepts or specific functions from inside the package. You can also use this tag if you need more information about moving from a "standard" Shiny app structure to a {golem}-based application.

Here are a list of resources you can visit before asking your questions:

Documentation

Workflow

The general workflow is described at https://thinkr-open.github.io/golem/articles/

Functions reference

Find function documentation at https://thinkr-open.github.io/golem/reference/index.html

Moving from classical application

See the golemize repo for examples of moving classical apps to {golem}.

The book

A lot of resources about {golem} and about building apps with R can be found in the online book: https://thinkr-open.github.io/building-shiny-apps-workflow/

103 questions
0
votes
1 answer

How do I globally load Rmetric Financial calendars into `golem` at the startup?

Question: What are the best practices to go about setting a "global" financial calendar using load_rmetrics_calenders(), ie a singular run of a function in golem? Background: This question is asked prior to finding a possible solution. I am using a…
JJ Fantini
  • 213
  • 1
  • 11
0
votes
1 answer

Launching the app does not track changes when using golem framework

I have just stumbled upon golem and had a very good experience using it so far. The documentation is also excellent. My only issue is regarding running the app / launching it (not deployment). I usually have the app instance running in a browser on…
Adrarc
  • 131
  • 6
0
votes
1 answer

How to update and redeploy Golem shiny app package (currently creates a new tar.gz, but none of the changes appear)

I have a shiny app that I built using golem. The app is to be run locally on the user's computer, rather than on a shiny server. I deployed the package using the 03_deploy.R script that is automatically created by golem, using devtools::build() to…
tamarack
  • 377
  • 1
  • 11
0
votes
1 answer

How do I use {polished} package with {brochure} framework?

This was a complicating in logic execution i came across using {polished} and {brochure}. When placing secure_ui/secure_server inside of a brochure::Page() in the same order of the example given by the {polished} dev team, there are changes to how a…
JJ Fantini
  • 213
  • 1
  • 11
0
votes
1 answer

How do you have different server execution based on selected tabItem() in shiny?

Background I am using {brochure} and {golem} to build a shiny app. I have one outer module grid that consists of inner modules subGrid2 which displays the same module UI on two tabs. GOAL have a module subGrid2 that can be used for repeating…
JJ Fantini
  • 213
  • 1
  • 11
0
votes
1 answer

Using observeEvent to render a table in golem app

I'm new to the golem package, so new that I'm struggling with basic shiny operations. At this point I'm not able to render a table based on an observeEvent triggered by an action button. This module is supposed to scrape the co-authors of any…
0
votes
1 answer

R Shiny Golem Dockerfile not buildable - there is no package called ‘remotes’

I am developing an R package for a Shiny App and containerising this with Docker, and I've used Golem's add_dockerfile() command to create the Dockerfile below. (I've removed most of the dependencies for brevity.) Unfortunately, it doesn't build.…
0
votes
0 answers

Add exiftool to a shiny app package built using golem; getting error message "Warning: Error in system: 'exiftool' not found"

I am building a Shiny app using golem, and I need to use exiftool to rename photos. After using usethis::use_package('exifr') in my 02_dev.R script, exifr::read_exif() works fine, but when the app hits my system call to use exiftool…
tamarack
  • 377
  • 1
  • 11
0
votes
2 answers

Importing dynamic datasets within a {golem} package

I currently have a data_prep.R file that I use to pull in data using SQL queries and then wrangle the data into suitable data frames for use within my {golem} package. At the end of this script I have usethis::usedata(df, overwrite = T) From…
Chris Mcnally
  • 146
  • 1
  • 4
0
votes
1 answer

Shiny: change to another tab greying out the current

I am trying to make a Shiny app using golem, but I am very new to this, and tried to do something I thought simple, but turns out it is not. In my app_ui.R file I have a tab structure like this: app_ui <- function(request) { tagList( # Leave…
DaniCee
  • 2,397
  • 6
  • 36
  • 59
0
votes
1 answer

Modularize reactiveUI with interdependent filters in shiny with {golem}

The following shiny app works well but has a problem: it displays errors or warnings because of the dynamic filtering. library(shiny) ui <- dashboardPage( dashboardHeader(), dashboardSidebar( titlePanel( …
Luis
  • 61
  • 4
  • 9
0
votes
1 answer

How to use readRDS() in module with golem in shiny?

Currently I am trying to read a rds-file inside of a module. I am using the golem package. This is my code right now and I don't know how to fix this. Goal: Once the rds-file is uploaded the conditionalPanel() should appear. Problem: Reading the…
mariusr
  • 69
  • 6
0
votes
1 answer

making conditionalPanel work with input parameter in a R shiny Golem package

i usually see the conditionalPanel work with an event happening, like a button press or a checkbox checked etc. but here, i want it to work with a parameter passed when i run the app. i am trying to show the conditional panel only if the "input"…
tycheo
  • 37
  • 4
0
votes
1 answer

*** caught segfault ***; address 0x5573328516d8, cause 'memory not mapped' in R shiny (golem) app deployed via shinyapps.io

I have got a problem with my R Shiny app which runs perfectly fine locally but irregularly returns "Disconnected from the server: Reload" when deployed via shinyapps.io. Note that users do not get disconnected every time they click the…
MaxlAm
  • 1
  • 2
0
votes
1 answer

{golem} template for non-RStudio IDE users

Is there a progammatic way to start a new {golem} app from template? As a VSCode user, it bothers me a little having to open RStudio just to create a new project from template.
Alberson Miranda
  • 1,248
  • 7
  • 25