Skip to content

Commit

Permalink
Merge pull request #19 from dracula/update-package-name
Browse files Browse the repository at this point in the history
Update name to `dRacula`
  • Loading branch information
jrdnbradford authored Jul 16, 2024
2 parents c472a78 + 8cda3cc commit ab76fbb
Show file tree
Hide file tree
Showing 17 changed files with 79 additions and 86 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
^\.Rproj\.user$
^INSTALL\.md$
^README\.qmd$
^README_files$
^screenshot\.png$
^data-raw$
^.lintr$
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
.RData
.Ruserdata
.httr-oauth
/.quarto/

/.quarto/
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Package: ggDracula
Package: dRacula
Title: Dracula theme for R
Version: 0.5.4
Authors@R:
person("Jordan", "Bradford", email = "[email protected]", role = c("aut", "cre"))
Maintainer: Jordan Bradford <[email protected]>
Description: Provides a Dracula ggplot2 theme and R palette.
Description: Dracula theme for all things R.
License: MIT + file LICENSE
BugReports: https://github.com/dracula/ggplot2/issues
URL: https://github.com/dracula/ggplot2, https://github.com/dracula, https://draculatheme.com, https://draculatheme.com/ggplot2
BugReports: https://github.com/dracula/dRacula/issues
URL: https://github.com/dracula/dRacula, https://github.com/dracula, https://draculatheme.com, https://draculatheme.com/dRacula
Encoding: UTF-8
RoxygenNote: 7.3.2
Imports:
Expand Down
8 changes: 4 additions & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
### [ggplot2](https://github.com/tidyverse/ggplot2)
### [R](https://cran.r-project.org/)

#### Install using `R`
#### Install

Install with `R` using [`devtools`](https://github.com/r-lib/devtools):

devtools::install_github("dracula/ggplot2")
devtools::install_github("dracula/dRacula")

or [`remotes`](https://github.com/r-lib/remotes):

remotes::install_github("dracula/ggplot2")
remotes::install_github("dracula/dRacula")
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2023
COPYRIGHT HOLDER: ggDracula authors
YEAR: 2023-2024
COPYRIGHT HOLDER: dRacula authors
File renamed without changes.
2 changes: 1 addition & 1 deletion R/theme_dracula.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#'
#' # Or set it for the plot in the pipeline:
#' library(dplyr)
#' library(ggDracula)
#' library(dRacula)
#' library(ggplot2)
#'
#' mpg %>%
Expand Down
26 changes: 11 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,32 @@
# {ggDracula} \| Dracula Theme for R


<!-- README.md is rendered from README.qmd. Edit README.qmd and render to update README.md -->

[![R-CMD-check](https://github.com/dracula/ggplot2/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/dracula/ggplot2/actions/workflows/R-CMD-check.yaml)
# {`dRacula`} \| Dracula Theme for R <a href="https://draculatheme.com/"><img src="man/figures/logo.svg" align="right" height="139" alt="Dracula logo in an R hex sticker"/></a>

<img src="man/figures/logo.svg" align="right" height="139" alt="Dracula logo in an R hex sticker" />
[![R-CMD-check](https://github.com/dracula/ggplot2/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/dracula/ggplot2/actions/workflows/R-CMD-check.yaml)

> A dark theme for R, including a
> [ggplot2](https://github.com/tidyverse/ggplot2) theme and palette.
> All things Dracula themed for R
## Install

All instructions can be found at
[draculatheme.com/ggplot2](https://draculatheme.com/ggplot2).
[draculatheme.com/R](https://draculatheme.com/R).

``` r
devtools::install_github("dracula/ggplot2")
devtools::install_github("dracula/dRacula")
```

or

``` r
remotes::install_github("dracula/ggplot2")
remotes::install_github("dracula/dRacula")
```

## Examples

``` r
library(dplyr)
library(ggplot2)
# library(ggDracula)
library(dRacula)

set.seed(1)
ggplot(data.frame(x = rnorm(10000), y = rnorm(10000)), aes(x = x, y = y)) +
Expand All @@ -44,7 +40,7 @@ ggplot(data.frame(x = rnorm(10000), y = rnorm(10000)), aes(x = x, y = y)) +
``` r
library(dplyr)
library(ggplot2)
library(ggDracula)
library(dRacula)

lm <- lm(mpg ~ wt, data = mtcars)

Expand All @@ -63,16 +59,16 @@ ggplot(mtcars %>% mutate(resid = abs(resid(lm)), fitted = fitted(lm))) +

This theme is maintained by the following person(s) and a bunch of
[awesome
contributors](https://github.com/dracula/ggplot2/graphs/contributors).
contributors](https://github.com/dracula/dRacula/graphs/contributors).

| [![Jordan Bradford](https://github.com/jrdnbradford.png?size=100)](https://github.com/jrdnbradford) |
|----|
| [Jordan Bradford](https://github.com/jrdnbradford) |

## Community

- [Twitter](https://twitter.com/draculatheme) - Best for getting updates
about themes and new stuff.
- [X](https://x.com/draculatheme) - Best for getting updates about
themes and new stuff.
- [GitHub](https://github.com/dracula/dracula-theme/discussions) - Best
for asking questions and discussing issues.
- [Discord](https://draculatheme.com/discord-invite) - Best for hanging
Expand Down
21 changes: 10 additions & 11 deletions README.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
title: "{ggDracula} | Dracula Theme for R"
format: gfm
---

Expand All @@ -14,25 +13,25 @@ knitr::opts_chunk$set(
)
```

[![R-CMD-check](https://github.com/dracula/ggplot2/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/dracula/ggplot2/actions/workflows/R-CMD-check.yaml)
# {`dRacula`} | Dracula Theme for R <a href="https://draculatheme.com/"><img src="man/figures/logo.svg" align="right" height="139" alt="Dracula logo in an R hex sticker"/></a>

<img src="man/figures/logo.svg" align="right" height="139" alt="Dracula logo in an R hex sticker" />
[![R-CMD-check](https://github.com/dracula/ggplot2/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/dracula/ggplot2/actions/workflows/R-CMD-check.yaml)

> A dark theme for R, including a [ggplot2](https://github.com/tidyverse/ggplot2) theme and palette.
> All things Dracula themed for R
## Install

```{R load-package, echo=FALSE}
devtools::load_all()
```

All instructions can be found at [draculatheme.com/ggplot2](https://draculatheme.com/ggplot2).
All instructions can be found at [draculatheme.com/R](https://draculatheme.com/R).
```{R devtools-install, echo=TRUE, eval=FALSE, output=FALSE}
devtools::install_github("dracula/ggplot2")
devtools::install_github("dracula/dRacula")
```
or
```{R remotes-install, echo=TRUE, eval=FALSE, output=FALSE}
remotes::install_github("dracula/ggplot2")
remotes::install_github("dracula/dRacula")
```

## Examples
Expand All @@ -43,7 +42,7 @@ remotes::install_github("dracula/ggplot2")
#| dpi: 150
library(dplyr)
library(ggplot2)
# library(ggDracula)
library(dRacula)
set.seed(1)
ggplot(data.frame(x = rnorm(10000), y = rnorm(10000)), aes(x = x, y = y)) +
Expand All @@ -59,7 +58,7 @@ ggplot(data.frame(x = rnorm(10000), y = rnorm(10000)), aes(x = x, y = y)) +
#| dpi: 150
library(dplyr)
library(ggplot2)
library(ggDracula)
library(dRacula)
lm <- lm(mpg ~ wt, data = mtcars)
Expand All @@ -75,15 +74,15 @@ ggplot(mtcars %>% mutate(resid = abs(resid(lm)), fitted = fitted(lm))) +

## Team

This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/ggplot2/graphs/contributors).
This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/dRacula/graphs/contributors).

| [![Jordan Bradford](https://github.com/jrdnbradford.png?size=100)](https://github.com/jrdnbradford) |
| --------------------------------------------------------------------------------------------------- |
| [Jordan Bradford](https://github.com/jrdnbradford) |

## Community

- [Twitter](https://twitter.com/draculatheme) - Best for getting updates about themes and new stuff.
- [X](https://x.com/draculatheme) - Best for getting updates about themes and new stuff.
- [GitHub](https://github.com/dracula/dracula-theme/discussions) - Best for asking questions and discussing issues.
- [Discord](https://draculatheme.com/discord-invite) - Best for hanging out with the community.

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions data-raw/create_sticker.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ download.file(dracula_url, signature_dest_path)

hexSticker::sticker(
signature_dest_path,
package = "ggDracula",
package = "dRacula",
spotlight = FALSE,
h_size = 1.5,
h_color = "black",
Expand All @@ -20,7 +20,7 @@ hexSticker::sticker(
u_y = 0.1,
u_color = "black",
filename = raw_log_path,
dpi: 600
dpi = 600
)

usethis::use_logo(raw_log_path)
16 changes: 7 additions & 9 deletions data-raw/stickers/logo-raw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions man/dRacula-package.Rd

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

16 changes: 7 additions & 9 deletions man/figures/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 0 additions & 26 deletions man/ggDracula-package.Rd

This file was deleted.

2 changes: 1 addition & 1 deletion man/theme_dracula.Rd

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

4 changes: 2 additions & 2 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
# * https://testthat.r-lib.org/reference/test_package.html#special-files

library(testthat)
library(ggDracula)
library(dRacula)

test_check("ggDracula")
test_check("dRacula")

0 comments on commit ab76fbb

Please sign in to comment.