Skip to content

Commit

Permalink
Make new 'current_viewport' to set_grid_context() optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hpages committed Jun 30, 2023
1 parent 3d4d897 commit 00e36c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/blockApply.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ getAutoBPPARAM <- function() S4Arrays:::get_user_option("auto.BPPARAM")

set_grid_context <- function(effective_grid,
current_block_id,
current_viewport,
current_viewport=NULL,
envir=parent.frame(1))
{
if (!is.null(effective_grid))
Expand Down
2 changes: 1 addition & 1 deletion man/blockApply.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ getAutoBPPARAM()
setAutoBPPARAM(BPPARAM=NULL)

## For testing/debugging callback functions:
set_grid_context(effective_grid, current_block_id, current_viewport,
set_grid_context(effective_grid, current_block_id, current_viewport=NULL,
envir=parent.frame(1))
}

Expand Down

0 comments on commit 00e36c7

Please sign in to comment.