Skip to content
This repository has been archived by the owner on Apr 10, 2022. It is now read-only.

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Feb 8, 2021
1 parent 0653261 commit e5718b1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ Next modify the `source.R` as your wish and convert it into your Hiplot plugin.
./hisub.R source.R <output-directory>
```

For better use this tools, I recommend you to generate a soft link to the `hisub.R` with command similar to

```sh
ln -s ~/Documents/GitHub/hiplot-plugin-generator/hisub.R ~/.local/bin/hisub
```

Change the first path to your clone `hisub.R` path and change the second path to a path store executable file.
NOTE, the second path should be in system `PATH` variable so you can call **HiSub** with `hisub`.

### Hello World

Expand Down
9 changes: 9 additions & 0 deletions hisub.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ if (length(Args) == 1) {
}
}

if (length(Args) == 0) {
message("No operations detected.")
message("Usage:")
message("\t[hisub template] to generate a template.")
message("\t[hisub source.R ... outdir] to convert R script to Hiplot plugin.")
message("\nDetails see <https://github.com/hiplot/hiplot-plugin-generator>")
quit("no", -1)
}

# 如果传入的不是 2 个参数,中间的文件原样拷贝到插件目录以支持
# 已准备好的数据文件或其他所需脚本
fc <- file_content <- read_lines(Args[1])
Expand Down

0 comments on commit e5718b1

Please sign in to comment.