You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an R package exists in a subdirectory of a git repo, during the caching process an error is encountered due to the subdirectory not being recognized as a git repository.
Steps to reproduce
In a shell:
# Clone sample R package
git clone [email protected]:insightsengineering/r.pkg.template.git
cd r.pkg.template
# Create subdirectory and move R package contents to subdirectory
mkdir subdirectory
mv * subdirectory
cd subdirectory
In an R console:
# Attempt to compute dependency tablex<-staged.dependencies::dependency_table()
The error:
Copying local dir ~/r.pkg.template/subdirectory to cache dir ~/.staged.dependencies/packages_cache/local_insightsengineering_r.pkg.template_d98eb848af25dc4c5b9e8dab434f64c7
Error in repository(repo) : The 'path' is not in a git repository
Potential solutions
Skip cache in case of failure
Add option to skip_cache in the dependency_table function
Cache the root of the project
The text was updated successfully, but these errors were encountered:
Summary
If an R package exists in a subdirectory of a git repo, during the caching process an error is encountered due to the subdirectory not being recognized as a
git
repository.Steps to reproduce
In a shell:
In an R console:
The error:
Potential solutions
skip_cache
in thedependency_table
functionThe text was updated successfully, but these errors were encountered: