Browse Source

working

master
boB Rudis 5 years ago
parent
commit
b41e6f7a0d
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 27
      README.Rmd
  2. 699
      README.html
  3. 70
      README.md

27
README.Rmd

@ -22,31 +22,36 @@ Contents of the 'crux' & supporting Java archives
<https://github.com/chimbori/crux>.Version number reflects the version
number of the included 'JAR' file.
## What's Inside The Tin
The following functions are implemented:
## Installation
```{r install-ex, eval=FALSE}
devtools::install_git("https://sr.ht.com/~hrbrmstr/cruxjars.git")
# or
devtools::install_git("https://gitlab.com/hrbrmstr/cruxjars.git")
# or (if you must)
devtools::install_github("hrbrmstr/cruxjars")
install.packages(c("cruxjars", "crux"), repos = "https://cinc.rud.is/")
```
## Usage
```{r lib-ex}
library(cruxjars)
library(crux)
# current version
packageVersion("cruxjars")
packageVersion("crux")
```
```{r}
str(
summarise_url("http://time.com/5541738/joe-biden-backtracks-pence-praise-criticism/"), 1
)
```
```{r}
str(
classify_url("https://www.washingtonpost.com/powerpost/house-democrats-explode-in-recriminations-as-liberals-lash-out-at-moderates/2019/02/28/c3d163fe-3b87-11e9-a06c-3ec8ed509d15_story.html")
)
```
## cruxjars Metrics
## crux Metrics
```{r cloc, echo=FALSE}
cloc::cloc_pkg_md()

699
README.html

File diff suppressed because one or more lines are too long

70
README.md

@ -15,39 +15,71 @@ Contents of the ‘crux’ & supporting Java archives
<https://github.com/chimbori/crux>.Version number reflects the version
number of the included ‘JAR’ file.
## What’s Inside The Tin
The following functions are implemented:
## Installation
``` r
devtools::install_git("https://sr.ht.com/~hrbrmstr/cruxjars.git")
# or
devtools::install_git("https://gitlab.com/hrbrmstr/cruxjars.git")
# or (if you must)
devtools::install_github("hrbrmstr/cruxjars")
install.packages(c("cruxjars", "crux"), repos = "https://cinc.rud.is/")
```
## Usage
``` r
library(cruxjars)
library(crux)
# current version
packageVersion("cruxjars")
## [1] '2.0.2'
packageVersion("crux")
## [1] '0.1.0'
```
``` r
str(
summarise_url("http://time.com/5541738/joe-biden-backtracks-pence-praise-criticism/"), 1
)
## List of 14
## $ url : chr "http://time.com/5541738/joe-biden-backtracks-pence-praise-criticism/"
## $ original_url : chr NA
## $ title : chr "Joe Biden Backtracks After Calling Pence 'a Decent Guy'"
## $ description : chr "The former Vice President took back his comment that Pence is \"a decent guy\" after fellow Democrats denounced his remarks"
## $ site_name : chr "Time"
## $ theme_color : chr NA
## $ amp_url : chr "http://amp.timeinc.net/time/5541738/joe-biden-backtracks-pence-praise-criticism"
## $ canonical_url: chr "http://time.com/5541738/joe-biden-backtracks-pence-praise-criticism/"
## $ image_url : chr "http://timedotcom.files.wordpress.com/2019/03/ap19059832629402.jpg?quality=85&crop=0px%2C111px%2C6000px%2C3000p"| __truncated__
## $ video_url : chr NA
## $ feed_url : chr NA
## $ favicon_url : chr "http://time.com/img/favicons/favicon-192.png"
## $ reading_time : int 2
## $ text : chr "(OMAHA, Neb.) — Former Vice President Joe Biden’s tendency to talk about his good relationships with Republican"| __truncated__
```
``` r
str(
classify_url("https://www.washingtonpost.com/powerpost/house-democrats-explode-in-recriminations-as-liberals-lash-out-at-moderates/2019/02/28/c3d163fe-3b87-11e9-a06c-3ec8ed509d15_story.html")
)
## Classes 'tbl_df', 'tbl' and 'data.frame': 1 obs. of 10 variables:
## $ url : chr "https://www.washingtonpost.com/powerpost/house-democrats-explode-in-recriminations-as-liberals-lash-out-at-mode"| __truncated__
## $ is_ad_image : logi FALSE
## $ is_web_scheme : logi TRUE
## $ is_likely_article : logi TRUE
## $ is_likely_video : logi FALSE
## $ is_likely_audio : logi FALSE
## $ is_likely_binary_doc: logi FALSE
## $ is_likely_archive : logi FALSE
## $ is_likely_executable: logi FALSE
## $ is_likely_image : logi FALSE
```
## cruxjars Metrics
## crux Metrics
| Lang | \# Files | (%) | LoC | (%) | Blank lines | (%) | \# Lines | (%) |
| :---- | -------: | --: | --: | ---: | ----------: | ---: | -------: | ---: |
| Java | 2 | 0.2 | 28 | 0.36 | 5 | 0.18 | 18 | 0.21 |
| Maven | 1 | 0.1 | 17 | 0.22 | 0 | 0.00 | 1 | 0.01 |
| R | 5 | 0.5 | 15 | 0.19 | 2 | 0.07 | 32 | 0.38 |
| make | 1 | 0.1 | 10 | 0.13 | 4 | 0.14 | 0 | 0.00 |
| Rmd | 1 | 0.1 | 8 | 0.10 | 17 | 0.61 | 33 | 0.39 |
| Lang | \# Files | (%) | LoC | (%) | Blank lines | (%) | \# Lines | (%) |
| :---- | -------: | ---: | --: | ---: | ----------: | ---: | -------: | ---: |
| HTML | 1 | 0.08 | 691 | 0.87 | 8 | 0.18 | 0 | 0.00 |
| make | 2 | 0.17 | 30 | 0.04 | 13 | 0.29 | 0 | 0.00 |
| Java | 2 | 0.17 | 28 | 0.04 | 5 | 0.11 | 18 | 0.21 |
| Maven | 1 | 0.08 | 17 | 0.02 | 0 | 0.00 | 1 | 0.01 |
| R | 5 | 0.42 | 15 | 0.02 | 2 | 0.04 | 32 | 0.38 |
| Rmd | 1 | 0.08 | 13 | 0.02 | 17 | 0.38 | 33 | 0.39 |
## Code of Conduct

Loading…
Cancel
Save