From 64e42c2bf387cdb8f990531fe2329de16e3edf39 Mon Sep 17 00:00:00 2001 From: hrbrmstr Date: Mon, 2 Sep 2019 09:36:07 -0400 Subject: [PATCH] sourcehut build test --- README.html | 1054 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 8 +- 2 files changed, 1058 insertions(+), 4 deletions(-) create mode 100644 README.html diff --git a/README.html b/README.html new file mode 100644 index 0000000..c26bd6a --- /dev/null +++ b/README.html @@ -0,0 +1,1054 @@ + + + + + + + + + + + + + + + + + + +

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Signed by Signed commit % Linux build Status Windows build status Coverage Status cran checks CRAN status Minimal R Version License

+

wand

+

Retrieve Magic Attributes from Files and Directories

+

Description

+

MIME types are shorthand descriptors for file contents and can be determined from “magic” bytes in file headers, file contents or intuited from file extensions. Tools are provided to perform curated “magic” tests as well as mapping MIME types from a database of over 1,800 extension mappings.

+

SOME IMPORTANT DETAILS

+

The header checking is minimal (i.e. nowhere near as comprehensive as libmagic) but covers quite a bit of ground. If there are content-check types from magic sources that you would like coded into the package, please file an issue and include the full line(s) from that linked magic.tab that you would like mapped.

+

What’s Inside The Tin

+

The following functions are implemented:

+ +

Installation

+
install.packages("wand", repos = "https://cinc.rud.is")
+# or
+remotes::install_git("https://git.rud.is/hrbrmstr/wand.git")
+# or
+remotes::install_git("https://git.sr.ht/~hrbrmstr/wand")
+# or
+remotes::install_gitlab("hrbrmstr/wand")
+# or
+remotes::install_bitbucket("hrbrmstr/wand")
+# or
+remotes::install_github("hrbrmstr/wand")
+

NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.

+

Usage

+
library(wand)
+library(tidyverse)
+
+# current verison
+packageVersion("wand")
+## [1] '0.6.0'
+
list.files(system.file("extdat", package="wand"), full.names=TRUE) %>% 
+  map_df(~{
+    tibble(
+      fil = basename(.x),
+      mime = list(get_content_type(.x))
+    )
+  }) %>% 
+  unnest()
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
filmime
actions.csvapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
actions.txtapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
actions.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
test_128_44_jstereo.mp3audio/mp3
test_excel_2000.xlsapplication/msword
test_excel_spreadsheet.xmlapplication/xml
test_excel_web_archive.mhtmessage/rfc822
test_excel.xlsmapplication/zip
test_excel.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
test_nocompress.tifimage/tiff
test_powerpoint.pptmapplication/zip
test_powerpoint.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
test_word_2000.docapplication/msword
test_word_6.0_95.docapplication/msword
test_word.docmapplication/zip
test_word.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
test.auaudio/basic
test.binapplication/mac-binary
test.binapplication/macbinary
test.binapplication/octet-stream
test.binapplication/x-binary
test.binapplication/x-macbinary
test.bmpimage/bmp
test.dtdapplication/xml-dtd
test.emfapplication/x-msmetafile
test.emfimage/emf
test.epsapplication/postscript
test.flivideo/flc
test.flivideo/fli
test.flivideo/x-fli
test.gifimage/gif
test.icoimage/vnd.microsoft.icon
test.icoimage/x-icon
test.jpgimage/jpeg
test.mp3audio/mp3
test.odtapplication/vnd.oasis.opendocument.text
test.oggapplication/ogg
test.oggaudio/ogg
test.pcximage/pcx
test.pcximage/vnd.zbrush.pcx
test.pcximage/x-pcx
test.pdfapplication/pdf
test.plapplication/x-perl
test.pltext/plain
test.pltext/x-perl
test.pltext/x-script.perl
test.pngimage/png
test.pnmapplication/x-portable-anymap
test.pnmimage/x-portable-anymap
test.ppmimage/x-portable-pixmap
test.pptapplication/msword
test.psapplication/postscript
test.psdimage/photoshop
test.pytext/x-python
test.pytext/x-script.phyton
test.rtfapplication/rtf
test.rtfapplication/x-rtf
test.rtftext/richtext
test.rtftext/rtf
test.shapplication/x-bsh
test.shapplication/x-sh
test.shapplication/x-shar
test.shtext/x-script.sh
test.shtext/x-sh
test.tarapplication/tar
test.tar.gzapplication/gzip
test.tar.gzapplication/octet-stream
test.tar.gzapplication/x-compressed
test.tar.gzapplication/x-gzip
test.tgaimage/x-tga
test.txttext/plain
test.txt.gzapplication/gzip
test.txt.gzapplication/octet-stream
test.txt.gzapplication/x-compressed
test.txt.gzapplication/x-gzip
test.wavaudio/x-wav
test.wmfapplication/x-msmetafile
test.wmfimage/wmf
test.wmfwindows/metafile
test.xcfapplication/x-xcf
test.xmlapplication/xml
test.xpmimage/x-xbitmap
test.xpmimage/x-xpixmap
test.xpmimage/xpm
test.zipapplication/zip
+
+ +

wand Metrics

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Lang# Files(%)LoC(%)Blank lines(%)# Lines(%)
R70.781540.61590.78700.69
JSON10.11800.3200.0000.00
Rmd10.11170.07170.22310.31
+

Code of Conduct

+

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

+ + + diff --git a/README.md b/README.md index 1b026e3..ee49d08 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.re [![Signed by](https://img.shields.io/badge/Keybase-Verified-brightgreen.svg)](https://keybase.io/hrbrmstr) ![Signed commit -%](https://img.shields.io/badge/Signed_Commits-26.1%25-lightgrey.svg) +%](https://img.shields.io/badge/Signed_Commits-100%25-lightgrey.svg) [![Linux build Status](https://travis-ci.org/hrbrmstr/wand.svg?branch=master)](https://travis-ci.org/hrbrmstr/wand) [![Windows build @@ -44,12 +44,12 @@ like mapped. ## What’s Inside The Tin +The following functions are implemented: + - `get_content_type`: Discover MIME type of a file based on contents - `guess_content_type`: Guess MIME type from filename (extension) - `simplemagic_mime_db`: File extension-to-MIME mapping data frame -The following functions are implemented: - ## Installation ``` r @@ -183,7 +183,7 @@ list.files(system.file("extdat", package="wand"), full.names=TRUE) %>% -## cloc Metrics +## wand Metrics | Lang | \# Files | (%) | LoC | (%) | Blank lines | (%) | \# Lines | (%) | | :--- | -------: | ---: | --: | ---: | ----------: | ---: | -------: | ---: |