Skip to content

Commit

Permalink
on cran
Browse files Browse the repository at this point in the history
  • Loading branch information
earowang committed Mar 12, 2024
1 parent 2bdc7f9 commit 204a766
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 0.2.9
Date: 2024-03-12 00:50:57 UTC
SHA: 2bdc7f99c4fa84ea78c32a3a7c5b002e64612530
6 changes: 3 additions & 3 deletions R/frame-calendar.R
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,12 @@ assign_grids <- function(ROW, COL, width, height, polar = FALSE) {
}

# Compute grid lines and text labels for frame_calendar()
gen_reference <- function(grids, dir = "h", ...) {
gen_reference <- function(grids, margin, dir = "h", week_start = 1, ...) {
dir <- match.arg(dir, c("h", "v"))
UseMethod("gen_reference")
}

gen_reference.daily <- function(grids, dir = "h", ...) {
gen_reference.daily <- function(grids, margin, dir = "h", week_start = 1, ...) {
# day breaks
minor_breaks <- gen_day_breaks(grids)
min_width <- min_diff(minor_breaks$x)
Expand Down Expand Up @@ -430,7 +430,7 @@ gen_reference.daily <- function(grids, dir = "h", ...) {
list(breaks = NULL, minor_breaks = minor_breaks, label = mtext, text = dtext)
}

gen_reference.weekly <- function(grids, dir = "h", ...) {
gen_reference.weekly <- function(grids, margin, dir = "h", week_start = 1, ...) {
# day breaks
minor_breaks <- gen_day_breaks(grids)
min_width <- min_diff(minor_breaks$x)
Expand Down

0 comments on commit 204a766

Please sign in to comment.