Browse Source

previews

master
boB Rudis 5 years ago
parent
commit
658c620fc2
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 4
      QuickLookR.xcodeproj/project.pbxproj
  2. 10
      README.md
  3. BIN
      man/figures/icons.png
  4. BIN
      man/figures/rda.png
  5. BIN
      man/figures/rdata.png
  6. BIN
      man/figures/rds.png
  7. BIN
      man/figures/rmd.png

4
QuickLookR.xcodeproj/project.pbxproj

@ -10,7 +10,7 @@
C4291BEF1D552859001238D2 /* GenerateThumbnailForURL.m in Sources */ = {isa = PBXBuildFile; fileRef = C4291BEE1D552859001238D2 /* GenerateThumbnailForURL.m */; };
C4291BF11D552859001238D2 /* GeneratePreviewForURL.m in Sources */ = {isa = PBXBuildFile; fileRef = C4291BF01D552859001238D2 /* GeneratePreviewForURL.m */; };
C4291BF31D552859001238D2 /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = C4291BF21D552859001238D2 /* main.c */; };
C4291BFB1D552C7A001238D2 /* QuickLookR.qlgenerator in CopyFiles */ = {isa = PBXBuildFile; fileRef = C4291BEB1D552859001238D2 /* QuickLookR.qlgenerator */; };
C4291BFB1D552C7A001238D2 /* QuickLookR.qlgenerator in CopyFiles */ = {isa = PBXBuildFile; fileRef = C4291BEB1D552859001238D2 /* QuickLookR.qlgenerator */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
@ -275,7 +275,6 @@
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = CBY22P58G8;
INFOPLIST_FILE = QuickLookR/Info.plist;
INSTALL_PATH = "~/Library/QuickLook";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/QuickLookR",
@ -295,7 +294,6 @@
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = CBY22P58G8;
INFOPLIST_FILE = QuickLookR/Info.plist;
INSTALL_PATH = "~/Library/QuickLook";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/QuickLookR",

10
README.md

@ -1,7 +1,15 @@
This is a macOS QuickLook Plugin for R data files.
That means if you install this plugin (download and unzip [`QuickLookR.qlgenerator.zip`](https://github.com/hrbrmstr/QuickLookR/releases/tag/v0.1.0) and put `QuickLookR.qlgenerator` into `~/Library/QuickLook`) you can hit the spacebar on an R Data or saved RDS file (`.rdata`, `.rda`, `.rds` are currently supported extensions) and get a `str()` preview without firing up R/RStudio.
That means if you install this plugin (download and unzip [`QuickLookR.qlgenerator.zip`](https://github.com/hrbrmstr/QuickLookR/releases/tag/v0.2.0) and put `QuickLookR.qlgenerator` into `~/Library/QuickLook`) you can hit the spacebar on an R Data or saved RDS file (case-insentitive `.rdata`, `.rda`, `.rds`, `.rmd` are currently supported extensions) and get a `str()` preview (for data files) without firing up R/RStudio and the ability to preview Rmd source files and then optionally go right to editing..
It looks for `Rscript` in `/usr/local/bin` and (for now) requires a helper package [`rdatainfo`](https://github.com/hrbrmstr/rdatainfo). `devtools::install_github("hrbrmstr/rdatainfo")` to install that.
For the moment, the QuickLook preview is rather plain, but I hope to improve the output and switch to reading the data files at the C-level by linking directly to `R.framework`.
![](man/figures/icons.png)
![](man/figures/rda.png)
![](man/figures/rdata.png)
![](man/figures/rmd.png)

BIN
man/figures/icons.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 KiB

BIN
man/figures/rda.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 735 KiB

BIN
man/figures/rdata.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 KiB

BIN
man/figures/rds.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 746 KiB

BIN
man/figures/rmd.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 974 KiB

Loading…
Cancel
Save