Skip to content

Commit

Permalink
Merge pull request #17 from Sweetdevil144/main
Browse files Browse the repository at this point in the history
Configure `/config/config.R`
  • Loading branch information
mdietze authored Mar 25, 2024
2 parents 048f416 + a5391d6 commit 931390f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 8 deletions.
4 changes: 2 additions & 2 deletions R/fct_workflow_status.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
#' @import tibble
#'
#' @noRd

source("config/config.R")

workflow_status <- function(report){
server <- rpecanapi::connect("http://141.142.217.168/", "carya", "illinois")
server <- rpecanapi::connect(host_url, "carya", "illinois")
id <- report$workflow_id
result <- data.frame()
for (i in id) {
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,20 @@ The PEcan Status Board can be installed locally from [GitHub](https://github.com
# install.packages("devtools")
devtools::install_github("PecanProject/pecan-status-board")
```
``` r

``` r
library("statusboard")
```

### Running The Dashboard

Now, within the `config/config.R` file, you can set the `host_url` to the PEcAn dockerised server you want to monitor. By default, it is set to the PEcAn API server hosted at [http://pecan.localhost/](http://pecan.localhost/).

``` r
# Run this code to start the dashboard locally
statusboard::run_app()

```

## Visualization

Data Visualization refers to the graphical representation of information and data in the form of a graph, or chart, or bar, or any other format. The purpose of Data Visualization is to convey information and results quickly and easily.
Expand Down
2 changes: 2 additions & 0 deletions config/config.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This is the URL that the R package will use to connect to the Pecan service.
host_url <- "http://pecan.localhost/"
3 changes: 2 additions & 1 deletion inst/ed2-test.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ library(tibble)
library(purrr)
library(httr)
library(glue)
source("config/config.R")

# Modify for your target machine and authentication
server <- connect("http://141.142.217.168/", "ashiklom", "admin")
server <- connect(host_url, "ashiklom", "admin")

# List all available models
models <- GET(
Expand Down
3 changes: 2 additions & 1 deletion inst/maespa-test.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ library(tibble)
library(purrr)
library(httr)
library(glue)
source("config/config.R")

# Modify for your target machine and authentication
server <- connect("http://141.142.217.168/", "ashiklom", "admin")
server <- connect(host_url, "ashiklom", "admin")

# List all available models
models <- GET(
Expand Down
3 changes: 2 additions & 1 deletion inst/run-test-list.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ library(tibble)
library(purrr)
library(httr)
library(glue)
source("config/config.R")

# Modify for your target machine and authentication
server <- connect("http://141.142.217.168/", "ashiklom", "admin")
server <- connect(host_url, "ashiklom", "admin")

# List all available models
models <- GET(
Expand Down
3 changes: 2 additions & 1 deletion inst/sipnet-test.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ library(tibble)
library(purrr)
library(httr)
library(glue)
source("config/config.R")

# Modify for your target machine and authentication
server <- connect("http://141.142.217.168/", "ashiklom", "admin")
server <- connect(host_url, "ashiklom", "admin")

# List all available models
models <- GET(
Expand Down

0 comments on commit 931390f

Please sign in to comment.