Using inst/extdata with vignette during package checking R 2.14.0

前端 未结 1 1533
感情败类
感情败类 2021-01-05 21:09

I have a package which contains a csv file which I put in inst/extdata per R-exts. This file is needed for the vignette. If I Sweave the vignette directly, all works well.

相关标签:
1条回答
  • 2021-01-05 22:01

    Have you tried using system.file instead of hardcoded relative paths?

    EC1 <- dot2HPD(file = system.file("inst", "extdata", "E_coli", "ecoli.dot", package = "your_package+name"))
    node.inst <- system.file("inst", "extdata", "E_coli", "NodeInst.csv", package = "your_package_name")
    
    0 讨论(0)
提交回复
热议问题