Comments (2)
Hi, thanks for your suggestion. I added an argument raw
to the content
function to return the blob content as a raw vector when set. Could you please checkout the branch raw-blob-content
and try if that solves your use-case. Maybe, your suggestion b) to use blob_content_to_file
is better? Or should also be added to facilitate various use-cases?
from git2r.
Wow, what turnaround! Yes, running content(..., raw= TRUE)
on the raw-blob-content
branch solves my use-case. Thanks!
While blob_content_to_file
might be more elegant in some cases, I think the cases where its efficiency would be needed are quite niche. It would be faster in cases where (a) large binary files are stored in the git repository, and/or (b) one is extracting many files, such as a script where one is getting every version of a file or files out of git history.
from git2r.
Related Issues (20)
- Is not installed HOT 6
- Version 0.31.0 does not build on Debian HOT 6
- y.vmware
- blob test fails on 10.6: Error in 'git2r_object_lookup': object not found - no match for id HOT 2
- Error when installing git2r from CRAN on Linux HOT 4
- Building from source on Windows with RTools 4.0 and R 4.1.x HOT 2
- Give helpful error message when first commit has not yet been made HOT 1
- `merge()` overwrites `base::merge()`
- Get information on remote repository
- Error in 'git2r_clone': unsupported URL protocol HOT 1
- ERROR: compilation failed for package βgit2rβ installation on Mac OS HOT 1
- Not able to use the diff method of git2r; always use baseR diff
- libgit2_version doesn't seem right HOT 1
- branch_get_upstream() doesn't work for local branch that has been pushed to remote
- Trouble installing in a container HOT 1
- Windows build link failure with RTools < 4.2
- Error in git2r::repository(local_repo): Unable to open repository at 'path'
- Error in 'git2r_push': config value 'http.followRedirects' was not found HOT 1
- Changes in the first commit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git2r.