Skip to content

Commit

Permalink
factor: rename plot_calendar() function
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Apr 2, 2024
1 parent d7fe5d5 commit 126ec33
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export(get_holidays)
export(get_month_name)
export(get_moon_phases)
export(get_weekday_name)
export(monthly_calendar)
export(number_of_days)
export(plot_calendar)
importFrom(grDevices,as.raster)
importFrom(grDevices,cairo_pdf)
importFrom(grDevices,col2rgb)
Expand Down
4 changes: 2 additions & 2 deletions R/get_calendar.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#' - `week`: the number of week (`integer`),
#' - `weekday`: the name of the day of the week (`character`),
#' - `month_name`: the name of month (`character`),
#' - `x`: position on the x-axis (used by `plot_calendar()`),
#' - `y`: position on the y-axis (used by `plot_calendar()`).
#' - `x`: position on the x-axis (used by `monthly_calendar()`),
#' - `y`: position on the y-axis (used by `monthly_calendar()`).
#'
#' @export
#'
Expand Down
12 changes: 6 additions & 6 deletions R/plot_calendar.R → R/monthly_calendar.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@
#' ## Add an example ----
#' }

plot_calendar <- function(year = format(Sys.Date(), "%Y"),
month = format(Sys.Date(), "%m"),
path = getwd(), filename = NULL, title = NULL,
events = NULL, weekend = TRUE, palette = "#990000",
lang = NULL, holidays = NULL, moon = FALSE,
specials = NULL) {
monthly_calendar <- function(year = format(Sys.Date(), "%Y"),
month = format(Sys.Date(), "%m"),
path = getwd(), filename = NULL, title = NULL,
events = NULL, weekend = TRUE, palette = "#990000",
lang = NULL, holidays = NULL, moon = FALSE,
specials = NULL) {

## Check year ----

Expand Down
4 changes: 2 additions & 2 deletions man/get_calendar.Rd

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

8 changes: 4 additions & 4 deletions man/plot_calendar.Rd → man/monthly_calendar.Rd

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

0 comments on commit 126ec33

Please sign in to comment.