简体   繁体   中英

Missing command in an R package

So to get to the point: I need to use an R package called machuruku. 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 ). While trying to run the code for the simulation I get an error message saying that the command "machu.simulation" doesn't exist. Any of you have any idea why that's happening? Am I missing a 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.

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.

  2. Complain (not quietly?) to the authors, the fact that they think this is reproducible means they might have missed something else, too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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