简体   繁体   中英

R package build from source control

I'm creating R package and every file related to the package needs to be locked in source control. This includes DESCRIPTION file, which is required for R packages. If this file is checked out, package is built without problems. If it is locked I get permission error. I think it is because build is trying to add date and time information to it. Is there any solution for this.

thank you.

[update 1] by "locked" I mean checked-in. I'm not building for CRAN, it is a set of R tools to be by a couple of teams inside the company

[update 2]

Error on console: * checking DESCRIPTION meta-information ... OK Warning in file(file, ifelse(append, "a", "w")) : cannot open file 'my_pkg/DESCRIPTION': Permission denied Error in file(file, ifelse(append, "a", "w")) : cannot open the connection Execution halted

解决该问题的一种方法是,将DESCRIPTION.template文件检入源代码管理,然后在构建过程中创建一个名为DESCRIPTION的本地副本

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