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
3
votes
0 answers

Config file not found in current working directory or parent directories with `pool` and `golem`

I am attempting to use the pool package in my Shiny golem application. I have slightly updated the default golem-config.yml: default: golem_name: mygolem golem_version: 0.0.0.9000 app_prod: no default_programs: !expr c(1:10000) db_host:…
Dylan Russell
  • 936
  • 1
  • 10
  • 29
2
votes
1 answer

Where should I load up-to-date data required for ui and server in a golem shiny app?

I have a golem app that loads data from an open government data portal. I need to access the data both in the ui (to make the choices fit the data) and in the server (to make a table and a plot), and I need the data to be up-to-date. Because I want…
gira
  • 175
  • 6
2
votes
1 answer

problem with updateTabItems. in R shiny with Golem

I am bulding an app with golem in R . I'm trying to change a TabItem through a button from tabItem (acceuil) to an other tabItem (Rating) this is Module "Acceuil" mod_Accueil_ui <- function(id){ ns <- NS(id) tagList( …
2
votes
1 answer

Reference to a leaflet map from a golem module to another

I'm building a Shiny app, using Golem as a framework. Inside my app, I have made a couple modules, all linked by a Leaflet map. However, I can't update the map from another module than the one that creates the map. I have tried to take into account…
Laurent
  • 1,914
  • 2
  • 11
  • 25
2
votes
1 answer

Error in: Could not find a root 'DESCRIPTION' file that starts with '^Package'

I'm developing a shinyapp with golem. From my computer everything works perfectly, but then I loaded the package on github and installed on another computer. The app has two main parts: the first where you can process raw data and save the output as…
Fabio DR
  • 89
  • 10
2
votes
1 answer

Cannot see the exposed Shiny app built with Docker and {golem}

I've been using the Golem framework for building R Shiny applications, which has been extremely helpful but I'm struggling with the docker file creation aspect of the framework. Workflow: In RStudio I create a new golem package, and insert a MIT…
David
  • 99
  • 4
2
votes
1 answer

I get an error when using {future} and {furrr} functions within a Golem Shiny App, what does it come from?

I am currently working on a Golem Shiny App called "package_name" (which is a requirement for me) for which some functions I created need to use functions from the {furrr} and {future} packages. However, whenever I try to run them, I get the…
2
votes
1 answer

how to make download button work in R shiny golem module

Taking @Simos Lazarou 's answer to Shiny App Downloads Button Only respond with HTML , how do i make this work in a module in a R shiny golem package? i tried implementing it in a module and ended up downloading a .html file instead of the desired…
tycheo
  • 37
  • 4
2
votes
0 answers

tq_get: error in evaluating the argument 'x' in selecting a method for function 'as_date'

When I try to use tq_get in {golem} I get the Warning: Warning: x = 'SPY', get = 'stock.prices': Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'as_date': object '_lubridate_C_valid_tz'…
Kevin P
  • 273
  • 1
  • 3
  • 13
2
votes
1 answer

Startup warning with reactive input in shiny module

I am currently modularizing a Shiny app in different modules following the {golem} framework. For simplicity, let's say I have 3 main shiny modules: mod_faith_plot: generates a scatterplot of a given dataset (I'll use faitfhul). mod_points_select:…
anddt
  • 1,589
  • 1
  • 9
  • 26
1
vote
0 answers

Accessing Input Value from One Shiny Golem Module to Conditionally Modify UI in Another Module

I'm working on a Shiny app using the Golem framework, and I'm facing a challenge related to inter-module communication. Specifically, I have two modules: module1 contains a dropdown allowing users to select a country, and module2 is responsible for…
1
vote
0 answers

modular shinyapp developed using golem doesn't connect between tabs(as modules)

I am working on a shinyapp that I would like to drive the user to different tabs in case certain information/conditions are provided. I'm using the golem framework to construct a robust modular shinyapp. Here is the app_ui.R and app_server.R files…
shevelp
  • 23
  • 2
1
vote
0 answers

Why run_app() in {golem} starts the shiny app?

The run_app() function in {golem} returns an object of class shiny.appobj, as far as I understand, since this is what is returned by with_golem_options() with the default parameter print=FALSE, inside run_app(). How does this object get "printed",…
1
vote
0 answers

R shiny session problem in deployed golem application

I have a shiny application made with golem in which I have a lot of modules (ui and server). This application is deployed and my problem is that when I open 2 windows of my application, the filters of one (window) are applied to the other. There is…
nimliug
  • 349
  • 1
  • 11
1
vote
1 answer

How to setup a Shiny app designed with Golem that uses a htmlTemplate and links to an external JavaScript file

I am trying to understand the required architecture of a Shiny Golem app that utilises a html template and invokes some basic JavaScript on the press of a button. I think that I might be placing the index.html file in the wrong location, and I have…
CallumH
  • 751
  • 1
  • 7
  • 22