ropensci / MODIStsp

An "R" package for automatic download and preprocessing of MODIS Land Products Time Series
https://docs.ropensci.org/MODIStsp
GNU General Public License v3.0
155 stars 51 forks source link

Fix error due to unrecognised pipe #211

Closed ranghetti closed 4 years ago

ranghetti commented 4 years ago

Launching MODIStsp(), the following error appears:

> library(MODIStsp)
> MODIStsp()
Loading required namespace: leaflet
Loading required namespace: shiny
Loading required namespace: shinydashboard
Loading required namespace: shinyFiles
Loading required namespace: shinyalert
GDAL version in use: 2.2.3
Loading required package: shiny

Listening on http://127.0.0.1:7963
Warning: Error in %>%: non trovo la funzione "%>%"
  46: <observer> [/home/lranghetti/R/x86_64-pc-linux-gnu-library/3.6/MODIStsp/app/srv/mstp_spatemp_srv_tiles.R#109]
   3: shiny::runApp
   2: MODIStsp_GUI
   1: MODIStsp

This pull requests fixes that.

Moreover, the check for packages required by the GUI was edited in order to properly work for all the packages (this because requireNamespace() works on single package names).

lbusett commented 4 years ago

Grazie Luigi.