Skip to content

Commit

Permalink
Update DESCRIPTION and vignette based on CRAN comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LucyMcGowan committed May 17, 2019
1 parent 9ea7c75 commit b4a48ec
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
^\.travis\.yml$
^codecov\.yml$
^cran-comments\.md$
^CRAN-RELEASE$
2 changes: 2 additions & 0 deletions CRAN-RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This package was submitted to CRAN on 2019-05-17.
Once it is accepted, delete this file and tag the release (commit 9ea7c75f17).
6 changes: 4 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
Package: tidycode
Type: Package
Title: A Package to Analyze Lines of R Code the Tidy Way
Title: Analyze Lines of R Code the Tidy Way
Version: 0.1.0
Authors@R: c(
person("Lucy", "D'Agostino McGowan", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7297-9359")),
person("Jim", "Hester", email = "[email protected]", role = "ctb"),
person("Jeff", "Leek", email = "[email protected]", role = c("ldr"))
)
Description: Analyze lines of R code using tidy principles.
Description: Analyze lines of R code using tidy principles. This allows you to
input lines of R code and output a data frame with one row per function
included. Additionally, it facilitates code classification via included lexicons.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/tidycode.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/tidycode.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ d_funcs %>%

## Classify code

Akin to the tidytext `get_sentiments()` function for sentiment analysis, the tidycode package has a `get_classifications()` function that will output a classification data frame. By default, this outputs a data frame with two classification lexicons, `crowdsource` and `leeklab`. The `crowdsource` lexicon was developed by twitter users who tried out the [classify shiny application](https://lucy.shinyapps.io/classify). The `leeklab` lexicon was curated by members of [Jeff Leek's Lab](https://jtleek.com). Both lexicons involve the same functions classified multiple times by different users. The `score` column indicates the percentage of functions that were classified as a given class. To just use the most prevalent classification, you can set the `incude_duplicates` parameter to `FALSE` in the `get_classifications()` function. By default both the `crowdsource` and `leeklab` lexicons will be output. To get just one, specify the `lexicon` parameter. Here we will merge in the `crowdsource` lexicon, picking the most prevalent classification by setting the `incude_duplicates` parameter to `FALSE`.
Akin to the tidytext `get_sentiments()` function for sentiment analysis, the tidycode package has a `get_classifications()` function that will output a classification data frame. By default, this outputs a data frame with two classification lexicons, `crowdsource` and `leeklab`. The `crowdsource` lexicon was developed by twitter users who tried out the [classify shiny application](https://lucy.shinyapps.io/classify). The `leeklab` lexicon was curated by members of [Jeff Leek's Lab](http://jtleek.com). Both lexicons involve the same functions classified multiple times by different users. The `score` column indicates the percentage of functions that were classified as a given class. To just use the most prevalent classification, you can set the `incude_duplicates` parameter to `FALSE` in the `get_classifications()` function. By default both the `crowdsource` and `leeklab` lexicons will be output. To get just one, specify the `lexicon` parameter. Here we will merge in the `crowdsource` lexicon, picking the most prevalent classification by setting the `incude_duplicates` parameter to `FALSE`.

```{r}
d_funcs %>%
Expand Down

0 comments on commit b4a48ec

Please sign in to comment.