Comments (9)
Note that RSQLite
should install sqlite
, and also this commit installs it explicitly with chocolatey
which definitely installs sqlite, yet the build still fails. The lsqlite3
library is passed to Makevars
by the config
file, so that's also not the problem.
from bikedata.
If I remember correctly, RSQLite bundles a copy of SQLite in the package, so never uses the common header files. It looks to me like the sqlite includes directory is not being passed correctly for some reason as it is complaining about sqlite3.h (which the lsqlite3 call would not have any effect on).
from bikedata.
Do you know where chocolatey installs sqlite3 to and if it includes the header files?
from bikedata.
It it doesn't include the header files we may need to revert to something like this.
from bikedata.
Thanks @richardellison for the quick response! Alas, I still can't get it work. No matter what I try, it always fails on sqlite.h: No such file or directory
. That even applies when the header (almagamation
) files are extracted in to a directory that is definitely on the $PATH
. I give up (for the moment at least)!
(One note fyi: The dll
can't be downloaded for an R
package, because it is then incorporated into the package itself, which consequently fails R CMD check
, but the chocolatey
install does the job there, so that's okay.)
from bikedata.
and wouldn't ya know it, it's actually a pervasive windows problem: The package fails on win-builder.r-project
as well, with undefined references to all sqlite3.h
bindings.
Note that Kirill says on RSQLite
that 'Header files for sqlite3 are no longer installed, linking to the package is not possible anymore. Packages that require access to the low-level sqlite3 API should bundle their own copy' (in NEWS.md
) - why? The sqlite3.c
fiile is now >7MB, which would make for a huge package! There must be a better way ...
from bikedata.
Is it possible to download the necessary files when compiling on Windows only? Wouldn't solve the problem of the Windows binaries being large though.
On the other hand, is 7MB really going to be an issue when the package is intended to download datasets many times larger than this?
from bikedata.
It's really just an appveyor issue - the win-builder
machines have no probs finding the headers, and I'd be highly resistant to such a package inflation for reasons that have nothing to do with cran. I'll remain hopeful of a more lightweight solution for a bit longer...
from bikedata.
@richardellison Finally back onto this with what appears to be the only viable solution of just bundling the whole damn lot. Whatever works in the end ... Thanks for your input on this issue. closing now.
from bikedata.
Related Issues (20)
- check UBSAN issues from examples HOT 1
- ditch reshape2 for tidyr HOT 1
- integer overflow
- Vanouver Mobi data
- get back on CRAN
- Issue downloading 2020 data from london HOT 2
- Guadalaraja data breaks with 2021-06 data HOT 3
- potentially inverted lat/lng in sf bay area stations HOT 5
- naive question: is fast c++ csv/zip --> sqlite3 useful enough to be its own package? HOT 2
- put citation in readme
- London dates not parsed correctly in bike_daily_trips() HOT 4
- Fix Guadalajara stations
- CRAN fails
- auto-download niceridemn
- bikedata misses numerous csv files from London HOT 11
- consider updating main readme to match vignette HOT 1
- fix tests HOT 1
- Removed from CRAN HOT 1
- Unable to store NYC data from 2018 and 2019
- Update all tests and examples to reflect new latest_lo_stns param
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bikedata.