View source: R/download.run.output.R
download.run.output | R Documentation |
Downloads & saves the desired output file for a run.
Hits the /api/run/{run_id}/output/{filename}
API endpoint
download.run.output(server, run_id, filename, save_as = NULL)
server |
Server object obtained using the connect() function |
run_id |
ID of the PEcAn run whose output is needed |
filename |
Name of the output file to be downloaded |
save_as |
File name to save the downloaded file as. Default: NULL (same
name as |
Response obtained from the /api/run/{run_id}/output/{filename}
endpoint
Tezan Sahu
server <- connect(url="http://pecan.localhost:80", username="carya", password="illinois")
# Download the 'README.txt' output for the run with id = '99000000282'
download.run.output(server, run_id=99000000282, filename='README.txt', save_as='test.README.txt')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.