HI EconomiCurtis,
Thanks for your answer. These steps were previously tested without success, using the config library. My idea is to buy a shinyapps.io license but without this solution I will not be able to opt for this license, since all my data is in the database, PostgreSQL.
My idea by attaching the code is to know where the possible error is.
The support of shinyapps.io could solve this doubt?
I am unclear which steps you are referring to as being previously tested, but your config.yml does not contain a section "shinyapps", which is what R_CONFIG_ACTIVE is set to when running on shinyapps.io.
You then need to ensure that your database is accessible from the shinyapps.io servers, per the Firewalls sub-section of the documentation.
If you have tried this and it is still not working, please include the error you are experiencing.
Try again and create shinyapps in the configyml file, and continue giving error. Check in shinyapps io the logs and in the compilation of the program I get this error:
nanodbc / nanodbc.cpp: 950: 01000: [unixODBC] [Driver Manager] Can not open lib 'PostgreSQL ODBC Driver (ANSI)': file not found
The documentation enumerates the available driver names.
The server cannot be '127.0.0.1', as that refers to the host on which the application is running, which, in the case of deploying it to shinyapps.io, does not have your database running. You need to set it to a publicly available IP address or hostname that refers to where it is running.