-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from TidierOrg/add-gen_reader
Add gen reader add reading rdata supprt
- Loading branch information
Showing
10 changed files
with
289 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "TidierFiles" | ||
uuid = "8ae5e7a9-bdd3-4c93-9cc3-9df4d5d947db" | ||
authors = ["Daniel Rizk <[email protected]> and contributors"] | ||
version = "0.1.3" | ||
version = "0.1.4" | ||
|
||
[deps] | ||
Arrow = "69666777-d1a9-59fb-9406-91d4454c9d45" | ||
|
@@ -11,6 +11,7 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" | |
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3" | ||
Parquet2 = "98572fba-bba0-415d-956f-fa77e587d26d" | ||
RData = "df47a6cb-8c03-5eed-afd8-b6050d6c41da" | ||
ReadStatTables = "52522f7a-9570-4e34-8ac6-c005c74d4b84" | ||
Reexport = "189a3867-3050-52da-a836-e630ba90ab69" | ||
XLSX = "fdbf4ff8-1666-58a4-91e7-1b58723a45e0" | ||
|
@@ -26,6 +27,7 @@ Parquet2 = "0.2" | |
ReadStatTables = "0.3" | ||
Reexport = "0.2, 1" | ||
XLSX = "0.10" | ||
RData = "1.0" | ||
julia = "1.9" | ||
|
||
[extras] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Reading .rds and .rdata files is made possible via RData.jl. There is currently no write support, nor is there url support. | ||
|
||
# To read the file, simply pass the path to `read_rdata` or `read_file`. There is a small difference between .rds and .rdata files. | ||
# .rdata files will contain a dict of the table name and the data frame. There can be multiple entries in one .rdata file. To access the data frame, you must pass the name of the dict to the object. | ||
|
||
# ```julia | ||
# using TidierFiles | ||
# file = read_rdata("path.rdata) # or read_file("path.rdata) | ||
# df = file["entry_name"] | ||
# ``` | ||
|
||
# This is in contrast to .rds files which will contain one data frame. | ||
# ```julia | ||
# df = read_rdata("path.rds) | ||
# ``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
bed8090
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
Release notes:
read_rdata
for reading.rds
and.rdata
filesread_file
andwrite_file
as type agnostic read write functions that dispatch the correct function for any file typebed8090
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/113780
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: