Rbuildignore and Excluding Directories

前端 未结 4 2182
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 04:12

I am interested in excluding two directories inst\\docs and inst\\examples while building and installing the package. I know that an easy way out i

4条回答
  •  旧时难觅i
    2020-12-06 04:27

    An old post but it still seems to be an issue when building binary packages. The following hack seems to work though (i.e., build source package and then build binary from that source package).

    f <- devtools::build("mypackage")
    system(paste0("R CMD INSTALL --build ", f))
    

提交回复
热议问题