The app runs and works locally and utilizes a torch based NN, but when deployed via shiny won't predict and just disconnects from the server owing to an error message: Warning: Error in : Lantern is not loaded. Please use install_torch()
to install additional dependencies. I did see this earlier post(Problem with LibLantern library during rsconnect deployment of R torch-based app.) but trying this:
Sys.setenv(TORCH_HOME='/srv/connect/apps/appname')
library(torch)
did not work