可以尝试手动安装第二个私有R包,并将其添加到依赖项中。具体代码示例如下:
安装第二个私有R包:
install.packages("path/to/second/private/package/file", repos = NULL, type="source")
将其添加到依赖项中:
library(devtools)
devtools::install_github("public/firstprivatepkg", dependencies = TRUE, repos = NULL, auth_token = "your_github_token_here")
其中,“auth_token”是Github个人访问令牌,用于验证私有库。如果不是通过Github进行安装,可以将“repos”参数设置为相应的R包存储库的URL。