Skip to content

Commit

Permalink
Merge pull request #29 from best-practice-and-impact/28_function_bug
Browse files Browse the repository at this point in the history
Fix bug due to objects not being found
  • Loading branch information
CHCRowley authored Nov 13, 2024
2 parents beb14f9 + 4583c02 commit 3f39a23
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion R/af_palette.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ af_palette <- function(palette = "main",

palette_list <- switch(
palette_type,
af = af_colour_palettes
af = afcharts::af_colour_palettes
)

# Check valid palette name
Expand Down
2 changes: 0 additions & 2 deletions R/afcharts-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@
#' @importFrom rlang .data
## usethis namespace: end
NULL

globalVariables(c("af_colour_values", "af_colour_palettes"))
2 changes: 1 addition & 1 deletion R/scale_colour_continuous_af.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ scale_colour_continuous_af <- function(palette = "sequential",

palette_list <- switch(
palette_type,
af = af_colour_palettes
af = afcharts::af_colour_palettes
)

# Error if palette doesn't exist
Expand Down
2 changes: 1 addition & 1 deletion R/scale_fill_continuous_af.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ scale_fill_continuous_af <- function(palette = "sequential",

palette_list <- switch(
palette_type,
af = af_colour_palettes
af = afcharts::af_colour_palettes
)

# Error if palette doesn't exist
Expand Down
2 changes: 1 addition & 1 deletion R/use_afcharts.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#' @export


use_afcharts <- function(default_colour = af_colour_values["dark-blue"],
use_afcharts <- function(default_colour = afcharts::af_colour_values["dark-blue"],
...) {

# Use afcharts theme ----
Expand Down
2 changes: 1 addition & 1 deletion man/use_afcharts.Rd

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

0 comments on commit 3f39a23

Please sign in to comment.