r - 在 Rstudio 中编织时 Rcpp 代码抛出错误
问题描述
我正在尝试运行以下 rmarkdown 代码:
https://docs.google.com/document/d/164VZx3_cZ4tBa1Um39VH1cQ4zqRuCvpCTj-B50Vq2gk/edit?usp=sharing
但是当我编写代码时出现以下错误:
Quitting from lines 26-47 (demo.Rmd)
Error in (function (file = "", code = NULL, env = globalenv(), embeddedR = TRUE, :
Error 1 occurred building shared library.
Calls: <Anonymous> ... block_exec -> in_dir -> engine -> do.call -> <Anonymous>
In addition: Warning message:
No function return type found for Rcpp::export attribute at file1af863722d6.cpp:4
Execution halted `
当我用 {rcpp} 替换 {Rcpp} 时,我可以运行它,但它没有给出输出。如何让它运行并提供输出?
解决方案
推荐阅读
- asp.net-core - 使用 ASP.NET Core 设置 azure-pipelines.yml “存储库中未找到 Web 项目”
- python - Pandas 面试问题 - 比较 Pandas-Joins 并理想地提供最快的方法
- python - 我怎么能这样写for语句:因为我不在x中
- angular - FileReader.readystate 卡在 1。Onload 未触发
- rest - 如何使用 wso2 将远程 SOAP wsdl 发布到 REST API
- angular - Safari 中的服务人员
- jquery - 如何让消息出现在无效反馈中?
- python - 为什么这组简单的连接会返回意外包装的结果?
- r - 如何从R中的对创建链
- excel - 从excel文件vba循环文件夹名称