download.run.input: Download & save the desired input file for a run

View source: R/download.run.input.R

download.run.inputR Documentation

Download & save the desired input file for a run

Description

Downloads & saves the desired input file for a run. Hits the ⁠/api/run/{run_id}/input/{filename}⁠ API endpoint

Usage

download.run.input(server, run_id, filename, save_as = NULL)

Arguments

server

Server object obtained using the connect() function

run_id

ID of the PEcAn run whose input is needed

filename

Name of the input file to be downloaded

save_as

File name to save the downloaded file as. Default: NULL (same name as filename would be used)

Value

Response obtained from the ⁠/api/run/{run_id}/input/{filename}⁠ endpoint

Author(s)

Tezan Sahu

Examples

server <- connect(url="http://pecan.localhost:80", username="carya", password="illinois")

# Download the 'sipnet.clim' input for the run with id = '99000000282'
download.run.input(server, run_id=99000000282, filename='sipnet.clim', save_as='test.sipnet.clim')

PecanProject/rpecanapi documentation built on April 2, 2024, 8:17 a.m.