Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo updates #28

Merged
merged 6 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
^.Rhistory$
^\.Rproj\.user$
^data-raw$
^.pre-commit-config.yaml$
^\.github$
^LICENSE\.md$
^\.pre-commit-config\.yaml$
2 changes: 2 additions & 0 deletions .github/workflows/README-check.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Workflow derived from https://github.com/quarto-dev/quarto-actions/tree/v2/render
# Ensures that README.md is up to date with README.qmd
# by rendering, committing, and pushing changes to PR
on:
pull_request:
paths:
Expand Down
2 changes: 1 addition & 1 deletion R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@

#' @title Dataset of Lovecraft's corpus
#'
#' @description A dataset containing text of all the H. P. Lovecraft works available in {lovecraftr}
#' @description A dataset containing text of all the H. P. Lovecraft works available in this package
#'
#' @examples
#' data("lovecraft")
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ data("lovecraft")

See [CONTRIBUTING.md](./.github/CONTRIBUTING.md).

## License

MIT. See [LICENSE.md](./LICENSE.md).

## Citation

Please cite this package if you use it.
Expand Down
4 changes: 4 additions & 0 deletions README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ data("lovecraft")

See [CONTRIBUTING.md](/.github/CONTRIBUTING.md).

## License

MIT. See [LICENSE.md](/LICENSE.md).

## Citation

Please cite this package if you use it.
Expand Down
7 changes: 6 additions & 1 deletion data-raw/create_sticker.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/usr/bin/env Rscript

# This script generates the hex sticker for the packages


signature_url <- "https://upload.wikimedia.org/wikipedia/commons/a/a7/Lovecraft_signature_1924-02-02.png"
signature_dest_path <- file.path("data-raw", "stickers", "signature.png")
raw_log_path <- file.path("data-raw", "stickers", "logo-raw.png")
Expand All @@ -21,7 +26,7 @@ hexSticker::sticker(
u_y = 0.1,
u_color = "black",
filename = raw_log_path,
dpi: 600
dpi = 600
)

usethis::use_logo(raw_log_path)
2 changes: 1 addition & 1 deletion data-raw/generate_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ num_cols <- ncol(lovecraft)
corpus_docs <- glue::glue("{header}
#' @title Dataset of Lovecraft's corpus
#'
#' @description A dataset containing text of all the H. P. Lovecraft works available in {{lovecraftr}}
#' @description A dataset containing text of all the H. P. Lovecraft works available in this package
#'
#' @examples
#' data(\"lovecraft\")
Expand Down
2 changes: 1 addition & 1 deletion man/lovecraft.Rd

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