tests/examples/README.md

Examples

| Example | Description | | ------- | ----------- | | Project setup | Create a project, video type, image type, box type, line type, and dot type. Each type has an example of every attribute type definition. |

Running examples from the shell

Make sure R executables are in your $PATH

# Windows (PowerShell)
> (get-command R.exe).Path
# MacOS, Linux or Windows w/ Git Bash, MINGW, RStudio Terminal
$ which R

If it is not:

# Windows (PowerShell)
> $env:Path = $env:Path + ";" + "C:\Program Files\R\R-<YOUR VERSION>\bin"
# MacOS/Linux or Windows w/ Git Bash, MINGW, RStudio Terminal
$ export PATH=$PATH:/path/to/R/version/bin

Build the package

# Windows (PowerShell)
> build.bat
# MacOS/Linux or Windows w/ Git Bash, MINGW, RStudio Terminal
$ ./build.sh

Run an example

$ Rscript examples/setup_project.R --host="https://xxx.tator.dev" --token="xxxxxx"


cvisionai/tator-r documentation built on March 30, 2022, 1:23 a.m.