I'm getting the same error as this thread, https://forum.posit.co/t/how-can-i-use-an-golem-app-in-a-shiny-server/157007
. Below is the results in the log. I tried installing pkgload in R, but I'm still getting the same error.
GNU nano 6.2 basicgolem-shiny-20240103-003615-33285.log
su: ignoring --preserve-environment, it's mutually exclusive with --login
Warning in loadSupport(appDir, renv = sharedEnv, globalrenv = NULL) :
Loading R/ subdirectory for Shiny application, but this directory appears to contain an R package. Sourcing files in R/ may cause>
Error in loadNamespace(x) : there is no package called ‘pkgload’
Calls: runApp ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted