Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
set_logger/ heatmap/ scatterPlot: added missing package
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchultheis committed Mar 9, 2018
1 parent 5adc30a commit 5412491
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/global.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ wilson.globals <- new.env(parent = emptyenv())
#'
#' @export
set_logger <- function(logger, token = NULL) {
if(is.null(logger) || is(logger, "logger")) {
if(is.null(logger) || methods::is(logger, "logger")) {
assign(x = paste0("logger", token), value = logger, envir = wilson.globals)
}
}
Expand Down
2 changes: 1 addition & 1 deletion R/heatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ heatmap <- function(input, output, session, data, types, plot.method = "static",
plot <- plot()$plot

# handle error
if(is(plot, "try-error")) {
if(methods::is(plot, "try-error")) {
# TODO add logging
stop("An error occured! Please try a different dataset.")
}
Expand Down
2 changes: 1 addition & 1 deletion R/scatterPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ scatterPlot <- function(input, output, session, data, types, x.names = NULL, y.n

# disable plot if mandatory x- or y-axis missing
shiny::observe({
if(!isTruthy(xaxis$selectedColumn()) || !isTruthy(yaxis$selectedColumn())) {
if(!shiny::isTruthy(xaxis$selectedColumn()) || !shiny::isTruthy(yaxis$selectedColumn())) {
shinyjs::disable("plot")
} else {
shinyjs::enable("plot")
Expand Down

0 comments on commit 5412491

Please sign in to comment.