|
1 |
| -# HiSub: a tool generating Hiplot plugin from R script |
| 1 | +# HiSub: generate Hiplot native plugin from R script |
2 | 2 |
|
3 | 3 | Hiplot plugin (self-contained Apps generated by Shiny or other techniques are not included) uses JSON to communicate with the front end, it is not easy to code and maintain both R script and JSON files at the same time. In current stage, a formal Hiplot plugin has the following structure in a directory:
|
4 | 4 |
|
@@ -38,7 +38,7 @@ For better use this tools, I recommend you to generate a soft link to the `hisub
|
38 | 38 | ln -s ~/Documents/GitHub/hiplot-plugin-generator/hisub.R ~/.local/bin/hisub
|
39 | 39 | ```
|
40 | 40 |
|
41 |
| -Change the first path to your clone `hisub.R` path and change the second path to a path store executable file. |
| 41 | +Change the first path to your cloned `hisub.R` path and change the second path to a path storing the executable file. |
42 | 42 | NOTE, the second path should be in system `PATH` variable so you can call **HiSub** with `hisub`.
|
43 | 43 |
|
44 | 44 | ### Hello World
|
@@ -121,13 +121,14 @@ With the R script, we can generate the Hiplot plugin with command:
|
121 | 121 | ./hisub.R examples/helloworld.R test_hello
|
122 | 122 | ```
|
123 | 123 |
|
124 |
| -**HiSub** accept as many as parameters you can put, but only the first and the last arguments will be used. |
| 124 | +**HiSub** accept as many as parameters you can put, but only the first will be treated as the R script to parse |
| 125 | + |
| 126 | +Others: |
125 | 127 |
|
126 |
| -- The 1st argument should be the prepared R script file. |
127 | 128 | - The last argument should be a directory path for the plugin, typically it has the same name as your plugin name.
|
128 | 129 | - Other middle arguments will be treated as necessary files (like `README.md`, currently it cannot be scripts called by the 1st R script ) and copied to the destination directory (specified by the last argument).
|
129 | 130 |
|
130 |
| -Then you can submit the generated `data.json` and `ui.json` to https://hiplot.com.cn/developer/plugin-preview to see how it works. For our "Hello World", it looks like: |
| 131 | +Then you can submit the generated `data.json` and `ui.json` to <https://hiplot.com.cn/developer/plugin-preview> (You can also read exmaples provided by this link and see how to set the parameter settings) to see how it works. For our "Hello World", it looks like: |
131 | 132 |
|
132 | 133 | 
|
133 | 134 |
|
@@ -172,6 +173,6 @@ This section I will briefly describe supported tags, for more information, pleas
|
172 | 173 |
|
173 | 174 | ### Docs
|
174 | 175 |
|
175 |
| -We are preparing, read <https://hiplot.com.cn/docs/zh/development-guides/> for now. |
| 176 | +See [doc.md](doc.md) |
176 | 177 |
|
177 | 178 | © 2020 Hiplot team
|
0 commit comments