You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Error in {.fn PlotFTIR::compress_low_energy}. {.arg ftir_spectra_plot} must be a ggplot object. You provided {.obj_type_friendly {ftir_spectra_plot}}."
"Error in {.fn PlotFTIR::add_wavenumber_marker}. {.arg ftir_spectra_plot} must be a ggplot object. You provided {.obj_type_friendly {ftir_spectra_plot}}."
403
403
)
404
404
}
405
405
406
+
if (is.null(line_aesthetics)) {
407
+
line_aesthetics<-list()
408
+
}
409
+
410
+
if (is.null(label_aesthetics)) {
411
+
label_aesthetics<-list()
412
+
}
413
+
414
+
if (!is.list(line_aesthetics)) {
415
+
cli::cli_abort(
416
+
"Error in {.fn PlotFTIR::add_wavenumber_marker}. {.arg line_aesthetics} must be a named list. You provided {.obj_type_friendly {line_aesthetics}}."
417
+
)
418
+
}
419
+
420
+
if (!is.list(label_aesthetics)) {
421
+
cli::cli_abort(
422
+
"Error in {.fn PlotFTIR::add_wavenumber_marker}. {.arg label_aesthetics} must be a named list. You provided {.obj_type_friendly {label_aesthetics}}."
423
+
)
424
+
}
425
+
406
426
data<-ftir_spectra_plot$data
407
427
if (wavenumber< min(data$wavenumber) ||wavenumber> max(data$wavenumber)) {
"Error in {.fn PlotFTIR::rename_plot_sample_ids}. {.arg ftir_spectra_plot} must be a ggplot object. You provided {.obj_type_friendly {ftir_spectra_plot}}."
490
510
)
@@ -608,7 +628,7 @@ move_plot_legend <- function(
608
628
i="Install {.pkg ggplot2} with {.run install.packages('ggplot2')}"
609
629
))
610
630
}
611
-
if (!ggplot2::is.ggplot(ftir_spectra_plot)) {
631
+
if (!ggplot2::is_ggplot(ftir_spectra_plot)) {
612
632
cli::cli_abort(
613
633
"Error in {.fn PlotFTIR::move_plot_legend}. {.arg ftir_spectra_plot} must be a ggplot object. You provided {.obj_type_friendly {ftir_spectra_plot}}."
i="Install {.pkg ggplot2} with {.run install.packages('ggplot2')}"
34
34
))
35
35
}
36
-
if (!ggplot2::is.ggplot(ftir_spectra_plot)) {
36
+
if (!ggplot2::is_ggplot(ftir_spectra_plot)) {
37
37
cli::cli_abort(
38
38
"Error in {.fn PlotFTIR::get_plot_sample_ids}. {.arg ftir_spectra_plot} must be a ggplot object. You provided {.obj_type_friendly {ftir_spectra_plot}}."
0 commit comments