Using RSQLite
in RStudio I run into the following error when running large queries
Error in rsqlite_send_query(conn@ptr, statement) :
database or disk is full
as the underlying process works on /dev/xvda1
. I've got plenty of space on /mnt/tmp
, but can't get sqlite
to work on /mnt/tmp
.
How can I change the temp folder where sqlite creates etilqs files? points to a solution for Windows. I'm running RStudio on ubuntu.
I've copied the following in my .profile
and /etc/environment
(neither ~/.bash_profile
nor ~/.bash_login
are in my home dir.
export TMPDIR=/mnt/tmp
export TMP=/mnt/tmp
export TEMP=/mnt/tmp
export SQLITE_TMPDIR=/mnt/tmp
I've submitted the same env variable definitions at the command line, but still can't get sqlite
to use /mnt/tmp
.
Do I really have to recompile sqlite
with sqlite3_temp_directory
set to /mnt/tmp
?
I have logged off between attempts...
Here's the content of /etc/environment
. I've tried with and without export
, with and without the quotes.
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
TMPDIR="/mnt/tmp"
TMP="/mnt/tmp"
TEMP="/mnt/tmp"
SQLITE_TMPDIR="/mnt/tmp"