mattbk / hack-grand-forks

Scripts for hacking with public data in the Grand Forks, ND area.
0 stars 1 forks source link

RSQLite installation issues #7

Closed mattbk closed 5 years ago

mattbk commented 5 years ago

Requires fs, which is causing this issue on Raspberry Pi Raspbian Jessie: https://github.com/r-lib/fs/issues/128.

Maybe use sqlitedf? https://www.r-bloggers.com/r-and-sqlite-part-1/

mattbk commented 5 years ago

Following https://github.com/r-lib/fs/issues/128#issuecomment-435552967

wget wget https://cran.r-project.org/src/contrib/fs_1.2.6.tar.gz (URL from CRAN) tar zxvf fs_1.2.6.tar.gz sudo nano path/to/fs/src/Makevars

ifeq ($(UNAME), Linux) 
PKG_LIBS += -pthread # Add this line here
OBJECTS +=  bsd/setmode.o bsd/strmode.o bsd/reallocarray.o 
endif 

R install.packages("~/fs", repos = NULL, type="source")

Success with fs! No issues with RSQLite installation after this.