如何将数据从SQLite数据库加载到Rstudio?

我为学校项目使用SQL创建了一个数据库。目前,我一直坚持将这些数据导入rstudio。我将数据库文件放在以下目录中:/ Users / milanpatty / Documents / Business / Semester_2 / R / Proftaak”。当我尝试与此代码建立连接时:

db <- dbConnect(SQLite(), dbname = 'Festivate.db')

我收到此错误:

Warning message:
Couldn't set synchronous mode: file is not a database
Use `synchronous` = NULL to turn off this warning. 

顺便说一句,我使用DB浏览器作为SQLite的接口。有人可以帮我解决这个问题吗?

编辑:我在R中安装了库RSQLite