使用 RSQLite 库时加载 MacPorts SQLite3
我在 SQLite(一个计算乘积的聚合器)中有一个用户定义的函数,它在 R 之外工作得很好。但我有时在 Mac 上,如果您想添加您的 SQLite3,则需要 MacPorts 版本的 SQLite3自己的功能/扩展。
我可以选择 RSQLite 加载哪个 SQLite3 吗?我在 SQLite 文档中没有看到任何内容。
另外,MacPorts 似乎将我的 sqlite3
链接更改为 MacPorts 安装的 SQLite3:
mbp:~ richard$ which sqlite3
/opt/local/bin/sqlite3
但是如果我想在 SQLite3 中加载扩展,我必须显式地使用 MacPorts 版本,如下所示:
mbp:~ richard$ /opt/local/bin/sqlite3 temp.sqlite
正在编写我自己的 SQLite函数并将它们与 R 结合起来会失败吗?谢谢!
I have a user defined function in SQLite (an aggregator that calculates the product) and it works fine outside R. But I'm on a Mac some of the time, which requires the MacPorts version of SQLite3 if you'd like to add your own functions/extensions.
Can I pick which SQLite3 that RSQLite loads? I don't see anything in the SQLite documentation.
Also, MacPorts appears to change my sqlite3
link to the MacPorts installed SQLite3:
mbp:~ richard$ which sqlite3
/opt/local/bin/sqlite3
But if I want to load the extension in SQLite3, I have to explicitly can the MacPorts version, like this:
mbp:~ richard$ /opt/local/bin/sqlite3 temp.sqlite
Is writing my own SQLite functions and combining them with R a lost cause? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否安装并加载了 RSQLite.extfuns 包?它有一个加载可用函数的函数:
默认情况下,这些函数是
Have you installed and loaded the RSQLite.extfuns package? It has a single function which loads the available functions:
By default these are the Healy extensions.