fn to avoid remotes::install_git() error on network drives#315
fn to avoid remotes::install_git() error on network drives#315
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #315 +/- ##
===========================================
+ Coverage 85.33% 85.41% +0.07%
===========================================
Files 9 10 +1
Lines 375 377 +2
===========================================
+ Hits 320 322 +2
Misses 55 55 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
tested and works on my mac. thanks dave! |
mayerbry
left a comment
There was a problem hiding this comment.
per our discussion: create two arguments. first argument is required to be a path input and named accordingly. keep ... for second argument and reference remotes::install_git help. Corresponds to any input except url which will be hard assigned via the processed version of the path input.
Functionality of function should be the same effectively, but should make the help documentation cleaner as it relates to first argument being the filepath.
very crude pseudo code
function (new_path_arg, ...)
{
[directory management, tests]
remotes::install_git(url = basename(new_path_arg), ...)
[directory management]
}
Description
Drop-in replacement for
remotes::install_git(), to avoid recurring issue of that function giving this error when used on network drives:Related Issues
Provide links to any related GitHub issues.
Checklist
devtools::document