Skip to content

Commit 7f40b7b

Browse files
committed
Update Readme with GWSDAT API example.
1 parent a0a5e22 commit 7f40b7b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,15 @@ Create the file `app.R` with the following content and publish to Posit Connect
7575
library("GWSDAT")
7676
launchApp()
7777
```
78+
79+
## Beta: Deploy as API on Posit Connect
80+
Create the file `app.R` with the following content and publish to Posit Connect server in the usual manner:
81+
82+
```r
83+
library("GWSDAT")
84+
launchApp(createOptions())
85+
```
86+
GWSDAT input arguments can be included in the URL. This example [here](https://stats-glasgow.shinyapps.io/GWSDATURL/?WellDataFilename=https://raw.githubusercontent.com/WayneGitShell/GWSDAT/master/data/BasicExample_WellData.csv&WellCoordsFilename=https://raw.githubusercontent.com/WayneGitShell/GWSDAT/master/data/BasicExample_WellCoords.csv) passes the location of the csv well and well coordinates data.
87+
This example [here](https://stats-glasgow.shinyapps.io/GWSDATURL/?ExcelDataFilename=https://github.com/WayneGitShell/GWSDAT/raw/GWWellReport/inst/extdata/Basic_Example.xlsx) passes the location of an Excel GWSDAT Input data file.
88+
This functionality is still in development.
89+

0 commit comments

Comments
 (0)