Open bschilder opened 2 years ago
The polyfun repo is not getting included in "inst/tools" when installing echofinemap. This is because the submodule is being interpreted as an empty folder by R: https://stackoverflow.com/questions/50474445/how-could-i-release-an-r-package-on-github-using-github-submodules
echofinemap
Suggested solution with packrat: https://blog.methodsconsultants.com/posts/using-packrat-with-git-submodules/
packrat
Discussion on devtools: https://github.com/r-lib/devtools/issues/1163 https://github.com/r-lib/devtools/pull/1222
devtools
git2r package: https://github.com/ropensci/git2r
git2r
This function seems promising: https://github.com/r-lib/devtools/pull/751#issuecomment-215540807
Intermediate solution: when users request to use PolyFun for the first time, they will have the option of re-installing echofinemap to add PolyFun. Not ideal, but it does work pretty consistently.
The polyfun repo is not getting included in "inst/tools" when installing
echofinemap
. This is because the submodule is being interpreted as an empty folder by R: https://stackoverflow.com/questions/50474445/how-could-i-release-an-r-package-on-github-using-github-submodulesSuggested solution with
packrat
: https://blog.methodsconsultants.com/posts/using-packrat-with-git-submodules/Discussion on
devtools
: https://github.com/r-lib/devtools/issues/1163 https://github.com/r-lib/devtools/pull/1222git2r
package: https://github.com/ropensci/git2rThis function seems promising: https://github.com/r-lib/devtools/pull/751#issuecomment-215540807