@@ -585,8 +585,6 @@ srv_a_pca <- function(id, data, reporter, filter_panel_api, dat, plot_height, pl
585585 scale_fill_manual(values = c(" Cumulative variance" = cols [2 ], " Single variance" = cols [1 ])) +
586586 ggthemes +
587587 themes
588-
589- print(plot )
590588 },
591589 env = list (
592590 ggthemes = parsed_ggplot2_args $ ggtheme ,
@@ -656,7 +654,6 @@ srv_a_pca <- function(id, data, reporter, filter_panel_api, dat, plot_height, pl
656654 labs +
657655 ggthemes +
658656 themes
659- print(plot )
660657 },
661658 env = list (
662659 x_axis = x_axis ,
@@ -878,7 +875,6 @@ srv_a_pca <- function(id, data, reporter, filter_panel_api, dat, plot_height, pl
878875 substitute(
879876 expr = {
880877 plot <- plot_call
881- print(plot )
882878 },
883879 env = list (
884880 plot_call = Reduce(function (x , y ) call(" +" , x , y ), pca_plot_biplot_expr )
@@ -954,10 +950,7 @@ srv_a_pca <- function(id, data, reporter, filter_panel_api, dat, plot_height, pl
954950 expr = {
955951 pca_rot <- pca $ rotation [, pc , drop = FALSE ] %> %
956952 dplyr :: as_tibble(rownames = " Variable" )
957-
958953 plot <- plot_call
959-
960- print(plot )
961954 },
962955 env = list (
963956 pc = pc ,
@@ -982,7 +975,10 @@ srv_a_pca <- function(id, data, reporter, filter_panel_api, dat, plot_height, pl
982975 )
983976 })
984977
985- decorated_output_q <- srv_teal_transform_data(" decorate" , data = output_q , transformators = decorators )
978+ decorated_output_q_no_print <- srv_teal_transform_data(" decorate" , data = output_q , transformators = decorators )
979+ decorated_output_q <- reactive(within(decorated_output_q_no_print(), expr = print(plot )))
980+
981+
986982
987983 plot_r <- reactive({
988984 req(output_q())
0 commit comments