From 9119776a8c5d3821da6090651baedace2f2d6563 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Todor=20Kondi=C4=87?= <todor.kondic@uni.lu>
Date: Sun, 28 Feb 2021 12:45:18 +0100
Subject: [PATCH] Update arguments to app

---
 DESCRIPTION | 2 +-
 R/api.R     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index 7da7aea..569196d 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,6 +1,6 @@
 Package: shinyscreen
 Title: Pre-screening of Mass Spectrometry Data 
-Version: 0.9.5
+Version: 0.9.6
 Author: Todor Kondić
 Maintainer: Todor Kondić <todor.kondic@uni.lu>
 Authors@R: 
diff --git a/R/api.R b/R/api.R
index 9e80320..42f22d1 100644
--- a/R/api.R
+++ b/R/api.R
@@ -687,9 +687,9 @@ report <- function(m) {
 
 
 #' @export
-app <- function() {
+app <- function(shiny_args=NULL,render_args=NULL) {
     unlink(list.files(pattern = "app_run.*html$"))
     unlink(list.files(pattern = "app_run.*Rmd$"))
     file.copy(system.file(file.path("rmd","app.Rmd"),package = "shinyscreen"),"app_run.Rmd")
-    rmarkdown::run(file = "app_run.Rmd")
+    rmarkdown::run(file = "app_run.Rmd", shiny_args = shiny_args, render_args = render_args)
 }
-- 
GitLab