I'm trying r shiny about spatial analysis with my r code:
parks = read_sf("C:/Users/HP/Downloads/Jawa barat")
dbd_sementara=read.table(file.choose(),header = T, sep = ";")
head(dbd_sementara)
newdata = merge(parks, dbd_sementara, by = "Kabupaten_")
pl <- st_cast(newdata$geometry[[4]], "POLYGON")
spd <- sf::as_Spatial(st_geometry(pl))
class(spd)
df <- pl
df$geometry <- NULL
sf_use_s2(FALSE)
temp<-poly2nb(newdata)
W<-nb2mat(temp, style = "B", zero.policy = TRUE)
W.list <- nb2listw(temp, style="B")
and now i want make that r code into rshiny. but i got error message like this:
Warning: Error in showMethods: first argument should be the names of one of more generic functions (got object of class “shiny.tag”)
1: runApp
my r shiny code i upload on my github (sorry i can't post in here because there have 490 line):