Correct Location for Functions in Global.R #695
pythiantech
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am migrating an existing Shiny app into the {golem} framework and have no prior experience with authoring a package or {golem}. But this definitely seems to be the right approach towards making Shiny apps.
In my existing app, I have some functions that are stored in the
global.R
file and used throughout the application. I have copied this functions intogolem_utils_server.R
under theR
folder. Firstly, is this the right thing to do? Secondly, I connect to a database and use the following function when I exit the application:The above worked absolutely fine when used in global.R. However, now during development, every time I stop the application, I get a Error in poolClose(pool) : could not find function "poolClose" error. Not sure why…Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions