how_to_write_the_script
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| how_to_write_the_script [2013/01/24 17:27] – [User's part of the script] david | how_to_write_the_script [2015/12/15 20:18] (current) – david | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== JUICE part of the script ===== | ===== JUICE part of the script ===== | ||
| - | The complete R script, which **JUICE automatically appends to the script file** ((i.e. this part should not be in the script, because it will be automatically appended)) and which is intended for import of the data from JUICE to R, has the following structure: | + | The complete R script, which JUICE automatically appends to the script file (i.e. **this part should not be in the script**, because it will be automatically appended) and which is intended for import of the data from JUICE to R, has the following structure: |
| <code rsplus> | <code rsplus> | ||
| setwd(" | setwd(" | ||
| Line 22: | Line 22: | ||
| |{{: | |{{: | ||
| |{{: | |{{: | ||
| - | |{{: | + | |{{: |
| |{{: | |{{: | ||
| Line 52: | Line 52: | ||
| |no.transf | |no.transf | ||
| - | The line with tags **MUST** begin with # JUICE-R (this is the sign for JUICE that JUICE-R tags follows) and should be located within the first 10 lines of the R script. Tags must be separated by space, and their order does not matter. | + | The line with tags **MUST** begin with a string **# JUICE-R**((with or without the space between # and JUICE-R)) |
| Example, which will export sample x species data, header data and run the script in interactive mode (Rgui.exe((note that Rgui.exe, as well as R.exe, should be written with capital ' | Example, which will export sample x species data, header data and run the script in interactive mode (Rgui.exe((note that Rgui.exe, as well as R.exe, should be written with capital ' | ||
| + | |||
| + | JUICE-R tags can also contain link to website with detail instructions about how to use the script. This link must be the last tag in the sequence, and should start with **< | ||
| + | |||
| + | Example of JUICE-R tags: | ||
| < | < | ||
| - | # JUICE-R JUICE.table JUICE.head Rgui.exe | + | # JUICE-R JUICE.table JUICE.head Rgui.exe |
| </ | </ | ||
| ==== 3. The body of the script ==== | ==== 3. The body of the script ==== | ||
| - | This part is up to the R script | + | This part is up to the R script |
how_to_write_the_script.1359019648.txt.gz · Last modified: (external edit)
