0

Similar to: Loading SQLite table in R with RSQLite

Receiving an error when I try to import a statistical stream network object. Has anyone worked with the SSN Cran R package and seen this error?

SSN: An R Package for Spatial Statistical Modeling on Stream Networks

install.packages("SSN")
install.packages("RSQLite")
install.packages("DBI")
#for stream network analysis
library("SSN")
library("RSQLite")
library("DBI")
dbConnect(RSQLite::SQLite())
    ssnME <- importSSN("/Volumes/CGA 2015 Conference/NHDplus_LSNetwork/lsn_ME.ssn")


>dbConnect(RSQLite::SQLite())
    <SQLiteConnection>
 
>ssnME <- importSSN("/Volumes/CGA 2015 Conference/NHDplus_LSNetwork/lsn_ME.ssn")

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘dbDisconnect’ for signature ‘"function"’

Laurel
  • 5,965
  • 14
  • 31
  • 57

1 Answers1

0

The quick fix to my question was using one line of code and changing the directory from an external hard-drive to a desktop folder:

dbConnect(RSQLite::SQLite()) 

and the folder of my SSN object was moved to my desktop.

Issue has been fixed.