Skip to content

Commit 4973c6d

Browse files
authored
Merge pull request #152 from cmu-delphi/release_v3.1
Release v3.1
2 parents 67a0f95 + ed94047 commit 4973c6d

File tree

6 files changed

+282
-140
lines changed

6 files changed

+282
-140
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: forecast-eval
22
Title: Forecast Evaluation Dashboard
3-
Version: 3
3+
Version: 3.1
44
Authors@R: person("Kate", "Harwood",
55
role = c("cre")),
66
person("Chris", "Scott",

dashboard/about.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ Though hospitalizations are forecasted on a daily basis, in keeping with the cas
8787
The forecasts and scores are available as RDS files and are uploaded weekly to a publicly accessible AWS bucket.
8888

8989
You can use the url https://forecast-eval.s3.us-east-2.amazonaws.com/ + filename to download
90-
any of the files from the bucket. For instance: https://forecast-eval.s3.us-east-2.amazonaws.com/score_cards_nation_cases.rds to download scores for nation level case predictions.
90+
any of the files from the bucket.
91+
92+
For instance: https://forecast-eval.s3.us-east-2.amazonaws.com/score_cards_nation_cases.rds to download scores for nation level case predictions.
9193

9294
The available files are:
9395
* predictions_cards.rds (forecasts)
@@ -97,5 +99,29 @@ The available files are:
9799
* score_cards_state_deaths.rds
98100
* score_cards_state_hospitalizations.rds
99101
* score_cards_nation_hospitalizations.rds
102+
103+
You can also connect to AWS and retrieve the data in R. Example of retrieving state cases file:
104+
105+
```
106+
library(aws.s3)
107+
Sys.setenv("AWS_DEFAULT_REGION" = "us-east-2")
108+
s3bucket = tryCatch(
109+
{
110+
get_bucket(bucket = 'forecast-eval')
111+
},
112+
error = function(e) {
113+
e
114+
}
115+
)
116+
117+
stateCases = tryCatch(
118+
{
119+
s3readRDS(object = "score_cards_state_cases.rds", bucket = s3bucket)
120+
},
121+
error = function(e) {
122+
e
123+
}
124+
)
125+
```
100126

101127

0 commit comments

Comments
 (0)