I am just starting the guided project for the SQL section and I copied the correct answer just to get the data base loaded in R and it doesn’t know the function above:
I am still having trouble. the factbook.db file from https://github.com/factbook/factbook.sql/releases/tag/v0.1
is not a recognized file and even when I save it into my folder that is assigned as the working directory, the call doesn’t work…
Can you provide me some screen shots or something so we don’t have to keep going back and forth? This is taking a lot of time.
Do you mind marking the solution for us? This puts it on the original post and makes it easier for others to find.
To mark an answer correct/as the solution:
Scroll down to the correct post
Click on the three dots next to the reply button
Then click the check box. It will then show up in the original post, and you’re all set!
I just downloaded the file from the hyperlink, and it worked as expected. The most probable reason is that the file didn’t exist in your working directory so when you ran the database connection code, it created an empty factbook.db database file. I had also experienced this issue when I was learning SQLite, I downloaded the file, but the file got saved to the Downloads directory as usual. So when I ran the connection statement, it created a new database file. I was under the impression that I may have moved the file to the working directory; however, I later get to know about the empty file issue.