Closed cboettig closed 6 years ago
ah, sorry, two separate things here. looks like taxizedb
is trying to call the command-line client directly, rather than use a DBI connection. Seems like this could be avoided? But maybe is necessary for import? Needing a bunch of command-line client utilities installed definitely makes things more cumbersome, would be nice to see if we can work around this? I will dig more.
So I think the db_load_gbif()
check should just be dropped, or should check for the DBI support. The sqlite3
client is never actually needed to connect, so this check is a bit misleading.
(Same for NCBI)
hmm, so the order of events for any one data source is (here for gbif):
db_download_gbif
db_load_gbif
src_gbif
in step 3 we do https://github.com/ropensci/taxizedb/blob/master/R/src.R#L46-L50
so maybe we don't need the user to have sqlite installed? true?
@arendsee does the user need sqlite installed on their machine to do the work in db_download_ncbi
?
You need SQLite support, eg libsqlite3-dev on Debian, but not the client, sqlite3, which is what the function currently checks for On Mon, Mar 26, 2018 at 10:20 PM Scott Chamberlain notifications@github.com wrote:
hmm, so the order of events for any one data source is (here for gbif):
- db_download_gbif
- db_load_gbif
- src_gbif
in step 3 we do https://github.com/ropensci/taxizedb/blob/master/R/src.R#L46-L50
so maybe we don't need the user to have sqlite installed? true?
@arendsee https://github.com/arendsee does the user need sqlite installed on their machine to do the work in db_download_ncbi ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropensci/taxizedb/issues/29#issuecomment-376400402, or mute the thread https://github.com/notifications/unsubscribe-auth/AANleh9VROAq02_n7sF-l_9rG5FtD8jEks5ticw2gaJpZM4S7042 .
--
ah okay. hmm, the description for the RSqlite pkg says it embeds sqlite, but maybe not?
Sorry, yeah, I think RSQLite
can install without the dev libs installed. Anyway, db_load_gbif()
shouldn't check for the presence of the command-line program sqlite3
since it is not needed for src_gbif()
to run successfully. It isn't needed for ncbi functions either, all the SQLite calls are made directly through RSQLite
.
(e.g. so currently I get the error sqlite3 not available
from the db_load_gbif()
even though RSQLite is installed and all the functions work just fine; just I don't have the command-line client sqlite3
available in my PATH).
okay, i think we should remove the sqlite3 check
I can use SQLite through the usual DBI / dplyr methods, e.g.
but this errors:
sessionInfo: