get.model.Rd
Get details of PEcAn Model from the database using model id.
Hits the /api/models/{model_id}
API endpoint.
get.model(server, model_id)
Server object obtained using the connect() function
ID of the model to retrieve
Response obtained from the /api/models/{model_id}
endpoint
server <- connect(url="http://pecan.localhost:80", username="carya", password="illinois")
# Get details of the SIPNET ssr model (id = 1000000022)
res <- get.model(server, model_id=1000000022)
#> Sorry! Server not responding.