简体   繁体   English

R package 中缺少命令

[英]Missing command in an R package

So to get to the point: I need to use an R package called machuruku.直截了当:我需要使用一个名为 machuruku 的 R package。 To get familiar with the package I used the dataset provided in the original paper ( https://academic.oup.com/sysbio/article/70/5/1033/6171196 ).为了熟悉 package,我使用了原始论文 ( https://academic.oup.com/sysbio/article/70/5/1033/6171196 ) 中提供的数据集。 While trying to run the code for the simulation I get an error message saying that the command "machu.simulation" doesn't exist.在尝试运行模拟代码时,我收到一条错误消息,指出命令“machu.simulation”不存在。 Any of you have any idea why that's happening?你们中有人知道为什么会这样吗? Am I missing a package?我错过了 package 吗?

I downloaded the dataset zip file , dove into the second nested zip file Guillory_and_Brown_simulation-validation.zip , then into its file code_simulation-validation.R , and noticed that this source file uses machu.simulation several times before defining the function starting in line 519.我下载了数据集 zip 文件,进入第二个嵌套的 zip 文件Guillory_and_Brown_simulation-validation.zip ,然后进入其文件code_simulation-validation.R ,并注意到该源文件在定义808 8595 行之前多次使用machu.simulation in4804183 .

Suggestions:建议:

  1. Grab lines 519 through the end, save into a different file, source that new file, then try to run the code in the beginning of the file again.从末尾抓取第 519 行,保存到不同的文件中,获取新文件的source ,然后再次尝试运行文件开头的代码。

  2. Complain (not quietly?) to the authors, the fact that they think this is reproducible means they might have missed something else, too.向作者抱怨(不是悄悄地?),他们认为这是可重现的事实意味着他们可能也错过了其他东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM