I am having a very strange problem. I have a shiny app running in a rstudio-server at my office. When I run the app from my notebook with a VPN connection it works fine, but when I get the app running from my PC in the office I get the UI visualization ok, but I do not get the server response. The first code lines that I have in the server is to open 3 shp files and when I run the app from my PC in the office nothing happens.
This is my sessionInfo ():
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS
If this is the case it will only work on the PC hosting the R session.
Consider using fileInput to allow users to upload files.
However, regarding this please keep in mind:
By default, the user can only upload files up to 5 MB. You can increase this limit by setting the shiny.maxRequestSize option prior to starting Shiny. For example, to allow up to 10 MB run options(shiny.maxRequestSize = 10 * 1024^2).
No no, I am using readOGR from rgdal package. I am using selectInput for the options of the shp files, I leave the user to decide but only with a limit of possibilities. Could it be readOGR the problem?
I know Mastering Shiny book, it is a very wonderful book. Thanks!
The following object is masked from ‘package:graphics’:
box
Loading required package: sp
Please note that rgdal will be retired by the end of 2023,
plan transition to sf/stars/terra functions using GDAL and PROJ
at your earliest convenience.
rgdal: version: 1.5-32, (SVN revision 1176)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.0.4, released 2020/01/28
Path to GDAL shared files: /usr/share/gdal
GDAL binary built with GEOS: TRUE
Loaded PROJ runtime: Rel. 6.3.1, February 10th, 2020, [PJ_VERSION: 631]
Path to PROJ shared files: /usr/share/proj
Linking to sp version:1.5-0
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.
Loading required package: spam
Spam version 2.8-0 (2022-01-05) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
Attaching package: ‘spam’
The following objects are masked from ‘package:base’:
backsolve, forwardsolve
Try help(fields) to get started.
The name provided ('refresh') is deprecated in Font Awesome 5:
please consider using 'sync' or 'fas fa-sync' instead
use the verify_fa = FALSE to deactivate these messages
That's the output of your R console. How about the output of your browser's console when trying to access the shiny app? In e.g. chrome use ctrl+shift+i to access the console.