How to configure for deployment as a package that users run on their machine? #1140
Replies: 4 comments
-
hi, Thank you for your message. If it's indeed a confirmed bug, it's indeed very problematic! May I ask you to specify the version of Golem being used? We will look into this promptly. |
Beta Was this translation helpful? Give feedback.
-
can you please send me your and also i dont understand why you have to do this :
|
Beta Was this translation helpful? Give feedback.
-
Many thanks for the extremely rapid reply. I'm new to deploying Shiny with golem and thought I was missing something about how to configure a golem app for my use case (i.e., as a package installed by the user and run on their local machine). Here are answers to the questions you posed.
There may be a better way, but I'm not currently seeing it. My expectations were. The user would:
Then, golem would:
Unfortunately, my expectations for golem appear to be wrong. In particular, when run by a user, golem looks for the To coerce the As an alternative, I considered modifying
However, that doesn't seem to do the trick. Also, I didn't immediately see any option in |
Beta Was this translation helpful? Give feedback.
-
See my answer & PR on the repo 🤘 |
Beta Was this translation helpful? Give feedback.
-
Recently, I created a simple golem app that I want to deploy as a package (i.e., user installs it and runs it locally on their machine). However, I could not figure out how to configure the app so that it would fetch
golem-config.yml
from the directory in which it's installed (i.e., the package directory in the user's R library directory). Are there configuration settings with this use case in mind? If not configuration settings, is there a natural, elegant, or sensible ways to achieve this from within the golem framework?See an issue here on the app's repo that tries to summarize the issue and that sketches my current kludgy solution.
For more context, here's the error I see if I run the installed package. Rather than look for the config in my golem app, golem is looking for it in the golem package folder. From there, golem looks to be attempting to copy that template config file to the working directory in which I'm running the app.
Beta Was this translation helpful? Give feedback.
All reactions