嗨,我有与此帖子相同的问题 How do you explicitly delete a SQLite database created with the sqldf library in an R script
但是,用户在博客中找到了答案,并放置了链接,但该链接不再起作用。像用户一样,我不了解表的存储位置,因此无法删除它们。我使用以下命令没有成功
sqldf("attach 'mydb' as new")
sqldf("create table mytable as SELECT * FROM mytable1", dbname="mydb")
file.remove("mytable")
sqldf("drop table mytable", dbname="mydb")
我收到错误“ sqldf:mydb中已经存在表mytable1”