edzer / sp

Classes and methods for spatial data
http://edzer.github.io/sp/
127 stars 27 forks source link

spcosa dependency error while publishing an app with shiny #100

Closed jars48 closed 3 years ago

jars48 commented 3 years ago

A spcosa dependency error appeared while publishing an app with shiny.

edzer commented 3 years ago

What does that have to do with sp?

jars48 commented 3 years ago

Dear Edzer,

Today, run my program and everything work perfect. Before, the problem was bacause of dependency with package spcosa. Maybe, this because of raster or gdal packages. I think the thread can be deleted. Thank you for your letter.

Edtree_v08b_13022021

Arseniy Zhogolev

Install packages

install.packages (c('rpart', 'evtree', 'partykit', 'raster', 'sp',

'rgdal', 'shiny'))

Load packages

require(rpart) # CART algorithm implementation

require(evtree) # EVTREE decision tree algorithm

require(partykit) # tools for decision tree models edition

require(rgdal) # GDAL interface require(raster) # tools for working with raster spatial data require(sp) # tools for working with spatial data require(shiny) # WEB GUI

Variables initialization

WD <- "G:/GIS/SASMs/EdTree_R/" # working directory

Main script

setwd(WD) # set working directory

r <- raster ("n50_e040_3arc_v2.tif") # import raster

User interface

ui <- fluidPage(   titlePanel("EdTree"),

  sidebarLayout(     sidebarPanel(       helpText("Heighs on digital elevation model, m"),

      sliderInput("range",                   label = "Range of interest:",                   min = -100, max = r@data@max/40, value = c(0, 300))     ),

    mainPanel(plotOutput("map"))   ) )

04.03.2021 15:48, Edzer Pebesma пишет:

What does that have to do with |sp|?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/edzer/sp/issues/100#issuecomment-790593545, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM2TTFBKLRMHPUCAEMM5UN3TB56TDANCNFSM4YTF27EQ.

edzer commented 3 years ago

spcosa was removed from CRAN; maybe you should contact its maintainer: it needs maintenance.