From 5ddda551eae0d68063fae8b92998b7c2b95b103f Mon Sep 17 00:00:00 2001 From: ShixiangWang Date: Fri, 5 Feb 2021 22:36:45 +0800 Subject: [PATCH] Add cliMode --- README.md | 4 ++-- examples/helloworld.R | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a9bcf37..9c23bd9 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ The contents of `helloworld.R`: # @param add_line export::extra::switch::{"default": true, "class":"col-12"} # en: Add Line # zh: 添加线图 -# @return ggplot::["pdf", "png"]::{"title": "A test plot", "width":4, "height": 4, "theme": "theme_bw"} +# @return ggplot::["pdf", "png"]::{"cliMode": true, "title": "A test plot", "width":4, "height": 4, "theme": "theme_bw"} # @data # # You can write the code to generate the example data # # 'data.txt' described in parameter data, or you can @@ -144,7 +144,7 @@ This section I will briefly describe supported tags, for more information, pleas - `::::` - `output-type` (JSON format) can be `ggplot`, `plot` (for plots not generated by ggplot) and `directory` (outputing a whole directory, you need read docs for more). - `output-format` sets the figure output format like PDF, PNG, etc. - - `output-setting` (JSON format) corresponds to default general parameters in a plot which provided in Hiplot UI but cannot be mapped to parameters of the main functions, like `title`, `palette`, `theme`, `width` and `height` of the plot, etc. + - `output-setting` (JSON format) corresponds to default general parameters in a plot which provided in Hiplot UI but cannot be mapped to parameters of the main functions, like `title`, `palette`, `theme`, `width` and `height` of the plot, etc. (`cliMode` is suggested enable, it works faster for simple plugin). - `@data`: many line, it contains code to generate example data described in data table parameters (**Optional**). ### More Examples diff --git a/examples/helloworld.R b/examples/helloworld.R index dcdaff1..db6fb10 100644 --- a/examples/helloworld.R +++ b/examples/helloworld.R @@ -32,7 +32,7 @@ # @param add_line export::extra::switch::{"default": true, "class":"col-12"} # en: Add Line # zh: 添加线图 -# @return ggplot::["pdf", "png"]::{"title": "A test plot", "width":4, "height": 4, "theme": "theme_bw"} +# @return ggplot::["pdf", "png"]::{"cliMode": true, "title": "A test plot", "width":4, "height": 4, "theme": "theme_bw"} # @data # # You can write the code to generate the example data # # 'data.txt' described in parameter data, or you can