diff --git a/Dockerfile b/Dockerfile index 9662374..fefc32c 100755 --- a/Dockerfile +++ b/Dockerfile @@ -16,10 +16,10 @@ RUN install2.r --error \ plotly \ dashboardthemes \ starsExtra - + RUN R -e "devtools::install_github('hadley/emo')" RUN R -e "devtools::install_github('Appsilon/shiny.i18n')" - + COPY . ./home/rstudio/app/ # Change the user settings diff --git a/appScripts/dependancies.R b/appScripts/dependancies.R index ff41f12..1094314 100755 --- a/appScripts/dependancies.R +++ b/appScripts/dependancies.R @@ -12,9 +12,7 @@ library(plotly) library(dashboardthemes) library(emo) library(viridis) -library(rgdal) library(raster) -library(rgeos) library(gstat) library(data.table) library(mapview) diff --git a/appScripts/global.R b/appScripts/global.R index 895012a..e8b972a 100755 --- a/appScripts/global.R +++ b/appScripts/global.R @@ -179,8 +179,9 @@ print_error_csv_columns <- function(){ open_shapefile <- function(filename){ - shp <- readOGR(filename) %>% st_as_sf() - + #shp <- readOGR(filename) %>% st_as_sf() + shp <- st_read(filename) + if (length(shp) == 0){ showModal(modalDialog( title = "SHP input error",