Re: [R] RSQLite: Tracking an error message to its source

2014-01-11 Thread Andrew Hoerner
On Sun, Jan 5, 2014 at 7:12 AM, Hadley Wickham wrote: > > Though I admit that it bothers me that, although the SQLite syntax > > documentation for "CREATE INDEX", here: > > http://www.sqlite.org/lang_createindex.html > > does say the database name is optional, it also says that, if you > include

Re: [R] RSQLite: Tracking an error message to its source

2014-01-05 Thread Hadley Wickham
> Though I admit that it bothers me that, although the SQLite syntax > documentation for "CREATE INDEX", here: > http://www.sqlite.org/lang_createindex.html > does say the database name is optional, it also says that, if you include > it, the period the period between the db name and the table nam

Re: [R] RSQLite: Tracking an error message to its source

2014-01-05 Thread Hadley Wickham
> Can you, or anyone, give me any hint on where -- no, not where, _how_ -- to > find the code for any of the functions called between dbGetQuery method for > conn="SQLiteConnection", or for any of the functions that are called by the > dbGetQuery method for SQLite connections that are in the chain

Re: [R] RSQLite: Tracking an error message to its source

2014-01-04 Thread Jeff Newmiller
I recommend that you NOT try to go down that particular rabbit hole unless you are very confident in your computer science skills... database engines are very complicated. Learn to work with the error messages provided to you, and think in SQL when working with a SQL database. --

Re: [R] RSQLite: Tracking an error message to its source

2014-01-04 Thread Andrew Hoerner
Thanks, Ista! That did the job. Though I admit that it bothers me that, although the SQLite syntax documentation for "CREATE INDEX", here: http://www.sqlite.org/lang_createindex.html does say the database name is optional, it also says that, if you include it, the period the period between the db

Re: [R] RSQLite: Tracking an error message to its source

2014-01-04 Thread Ista Zahn
dbGetQuery doesn't like the "." in your index name. Change to something else, e.g., command <-paste("CREATE INDEX IF NOT EXISTS ", DBname_c, "_", indexName_c, " ON ", yourTable_c, " (", paste(indexVars_C, collapse=", "), ")", sep='') } Best, Ista On Sa

Re: [R] RSQLite: Tracking an error message to its source

2014-01-04 Thread Andrew Hoerner
Andrew Hoerner rprogress.org> writes: > > Dear folks-- > I am not sure if this should be framed as a question about RSQLite, about > debugging, about SQLite, or about how to write a good question. I have a > little function (copied below beneath the error messages along with my > data), that is

[R] RSQLite: Tracking an error message to its source

2014-01-04 Thread Andrew Hoerner
Dear folks-- I am not sure if this should be framed as a question about RSQLite, about debugging, about SQLite, or about how to write a good question. I have a little function (copied below beneath the error messages along with my data), that is supposed to read a csv file and write it out to SQLit