Comments (3)
I don't fully understand how the interface to the load function is working here. But I have an initial function that works, even though it might skip some things that are important. FileIO.detect_rdata
needs to allow both formats (I couldn't figure where this was even defined, but even if I did know, fiddling with binary formats is well outside my area of expertise). So I skip calling it!
You can find this initial implementation here, would be great if someone who knew what they were doing could tidy up the interface stuff and commit to the master fork.
https://github.com/jsams/RData.jl/blob/4cba2af91a7282aa33a86efcc32892cda601f03d/src/RData.jl#L84
edit: doing a proper fork/branch stuff as requested, similar changes as before, but working in a branch now (still no tests and whatnot):
https://github.com/jsams/RData.jl/blob/500aa93121850d97c1c4ad6a5169f94c63d00338/src/RData.jl#L90
from rdata.jl.
@jsams You are welcome to submit a pull request, so that it's easier to review and eventually merge your work (just put your RDS commit in a new branch forked from the current master; the invitation to submit the PR will appear on github automatically). One important component that would be required to merge your work are tests. Please put some small sample test RDS files (ascii and non-ascii) into test/data
and add test/RDS.jl
with RDS loading tests (should be quite similar to what is already in test/RDA.jl
).
FileIO.detect_rdata()
is defined in FileIO.jl package. That's the central place where multiple file formats are declared, so that FileIO.load(<filename>)
can automatically redirect to the appropriate load()
implementation. Eventually, a PR registering RDS
file format would have to be submitted to that repository, if we want RDS files to be supported by load()
.
from rdata.jl.
yea, I can do that eventually. but I need to tend to the workflow that's using this first. Have some deadlines to take care of. Might be a couple of weeks or so before that happens.
from rdata.jl.
Related Issues (20)
- duplicate method definition for unix2zdt HOT 2
- revision needed for Julia v0.7 HOT 11
- Add "unique_colnames" keyword option to load() HOT 5
- Package compatibility caps
- Version 3 R serialization format
- Save julia objects as RData HOT 3
- R data file with non-standard extension is recognized as generic GZip file. HOT 5
- Dates Dependency HOT 3
- load not working HOT 10
- Reading ".data.R" files HOT 2
- `load` throws a warning since a change in R serialization format that came with v3.5/3.6
- TagBot trigger issue HOT 6
- Convert R's 32-bit integers to native integers
- isna MethodError
- Compatibility with FileIO.jl v1.6 HOT 1
- ERROR: UndefVarError: load not defined HOT 2
- RData can't load .rda files with [email protected] but can with [email protected] HOT 3
- Files ending with .RDS (capitalized) are not recognized as format{RDataSingle} HOT 5
- filename.RData vs filename.Rdata HOT 1
- Feature request: read online data HOT 1
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 rdata.jl.