Skip to content

Commit 77e0563

Browse files
author
Jordan S Read
committed
for #243
1 parent c0d7a48 commit 77e0563

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

R/embedded-functions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
is_in_package <- function(x){
2-
if (is.symbol(x))
2+
if (is.null(x) || is.symbol(x))
33
return(FALSE)
44

55
isTRUE(find(as.character(x[[1]]), mode = 'function') == paste0('package:',packageName()))

R/rect.R

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ rect <- function(object, ...) {
4545
}
4646

4747
rect.gsplot <- function(object, ..., legend.name=NULL, side=c(1,2)){
48-
fun.name <- "rect"
49-
to.gsplot <- list(list(arguments = set_args(fun.name, ...),
50-
gs.config=list(legend.name = legend.name, side = side))) %>%
51-
setNames(fun.name)
52-
53-
return(gsplot(append(object, to.gsplot)))
48+
set_window_args(object, fun.name="rect", ..., legend.name=legend.name, side=side)
5449
}
5550

0 commit comments

Comments
 (0)