Skip to content

Commit 44901c6

Browse files
committed
fix some broken and non-secure links
1 parent 257c628 commit 44901c6

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

R/tidyhydat-package.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#' For more information on HYDAT and ECCC data sources
2929
#' \itemize{
3030
#' \item Please see this description of the database:
31-
#' \url{https://ec.gc.ca/rhc-wsc/default.asp?n=9018B5EC-1}
31+
#' \url{https://www.canada.ca/en/environment-climate-change/services/water-overview/quantity/monitoring/survey/data-products-services/national-archive-hydat.html}
3232
#' \item This page is landing page for technical description of HYDAT:
3333
#' \url{http://collaboration.cmc.ec.gc.ca/cmc/hydrometrics/www/}
3434
#' \item This page links to a document that outlines database table definitions:

README.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ knitr::opts_chunk$set(
2121
[![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version/tidyhydat)](https://cran.r-project.org/package=tidyhydat) [![CRAN Downloads](https://cranlogs.r-pkg.org/badges/tidyhydat?color=brightgreen)](https://CRAN.R-project.org/package=tidyhydat) [![cran checks](https://cranchecks.info/badges/worst/tidyhydat)](https://cran.r-project.org/web/checks/check_results_tidyhydat.html)
2222

2323

24-
[![](http://badges.ropensci.org/152_status.svg)](https://github.com/ropensci/onboarding/issues/152) [![DOI](http://joss.theoj.org/papers/10.21105/joss.00511/status.svg)](https://doi.org/10.21105/joss.00511) [![DOI](https://zenodo.org/badge/100978874.svg)](https://zenodo.org/badge/latestdoi/100978874)
24+
[![](http://badges.ropensci.org/152_status.svg)](https://github.com/ropensci/software-review/issues/152) [![DOI](http://joss.theoj.org/papers/10.21105/joss.00511/status.svg)](https://doi.org/10.21105/joss.00511) [![DOI](https://zenodo.org/badge/100978874.svg)](https://zenodo.org/badge/latestdoi/100978874)
2525

2626

2727

@@ -35,7 +35,7 @@ This package is maintained by the Data Science and Analytics Branch of the [Brit
3535
- Provides functions (`hy_*`) that access hydrometric data from the HYDAT database, a national archive of Canadian hydrometric data and return tidy data.
3636
- Provides functions (`realtime_*`) that access Environment and Climate Change Canada's real-time hydrometric data source.
3737
- Provides functions (`search_*`) that can search through the approximately 7000 stations in the database and aid in generating station vectors
38-
- Keep functions as simple as possible. For example, for daily flows, the `hy_daily_flows()` function queries the database, *tidies* the data and returns a [tibble](http://tibble.tidyverse.org/) of daily flows.
38+
- Keep functions as simple as possible. For example, for daily flows, the `hy_daily_flows()` function queries the database, *tidies* the data and returns a [tibble](https://tibble.tidyverse.org/) of daily flows.
3939

4040
## Installation
4141
You can install `tidyhydat` from CRAN:

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Downloads](https://cranlogs.r-pkg.org/badges/tidyhydat?color=brightgreen)](https
1515
[![cran
1616
checks](https://cranchecks.info/badges/worst/tidyhydat)](https://cran.r-project.org/web/checks/check_results_tidyhydat.html)
1717

18-
[![](http://badges.ropensci.org/152_status.svg)](https://github.com/ropensci/onboarding/issues/152)
18+
[![](http://badges.ropensci.org/152_status.svg)](https://github.com/ropensci/software-review/issues/152)
1919
[![DOI](http://joss.theoj.org/papers/10.21105/joss.00511/status.svg)](https://doi.org/10.21105/joss.00511)
2020
[![DOI](https://zenodo.org/badge/100978874.svg)](https://zenodo.org/badge/latestdoi/100978874)
2121

@@ -39,7 +39,7 @@ What does `tidyhydat` do?
3939
station vectors
4040
- Keep functions as simple as possible. For example, for daily flows,
4141
the `hy_daily_flows()` function queries the database, *tidies* the
42-
data and returns a [tibble](http://tibble.tidyverse.org/) of daily
42+
data and returns a [tibble](https://tibble.tidyverse.org/) of daily
4343
flows.
4444

4545
Installation
@@ -93,9 +93,9 @@ the same conventions discussed above. Using `realtime_dd()` we can
9393
easily select specific stations by supplying a station of interest:
9494

9595
realtime_dd(station_number = "08LG006")
96-
#> Queried on: 2020-10-06 18:30:48 (UTC)
96+
#> Queried on: 2020-10-06 20:15:00 (UTC)
9797
#> Date range: 2020-09-06 to 2020-10-06
98-
#> # A tibble: 17,508 x 8
98+
#> # A tibble: 17,532 x 8
9999
#> STATION_NUMBER PROV_TERR_STATE~ Date Parameter Value Grade
100100
#> <chr> <chr> <dttm> <chr> <dbl> <chr>
101101
#> 1 08LG006 BC 2020-09-06 08:00:00 Flow 4.01 <NA>
@@ -108,7 +108,7 @@ easily select specific stations by supplying a station of interest:
108108
#> 8 08LG006 BC 2020-09-06 08:35:00 Flow 3.98 <NA>
109109
#> 9 08LG006 BC 2020-09-06 08:40:00 Flow 3.98 <NA>
110110
#> 10 08LG006 BC 2020-09-06 08:45:00 Flow 3.98 <NA>
111-
#> # ... with 17,498 more rows, and 2 more variables: Symbol <chr>, Code <chr>
111+
#> # ... with 17,522 more rows, and 2 more variables: Symbol <chr>, Code <chr>
112112

113113
### Plotting
114114

-13 Bytes
Loading

man/tidyhydat-package.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/tidyhydat_example_analysis.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Let's break this down line by line to understand how `tidyhydat` uses tidy tools
6060
```{r data_range}
6161
hy_stn_data_range()
6262
```
63-
Our objective here is to filter from this data for the station that has the longest record of flow (`DATA_TYPE == "Q"`). You'll also notice this symbol `%>%` which in R is called a [pipe](http://magrittr.tidyverse.org/reference/pipe.html). In code, read it as the word *then*. So for the data_range data we want to grab the data *then* filter it by flow ("Q") in `DATA_TYPE` and then by the maximum value of `RECORD_LENGTH`:
63+
Our objective here is to filter from this data for the station that has the longest record of flow (`DATA_TYPE == "Q"`). You'll also notice this symbol `%>%` which in R is called a [pipe](https://magrittr.tidyverse.org/reference/pipe.html). In code, read it as the word *then*. So for the data_range data we want to grab the data *then* filter it by flow ("Q") in `DATA_TYPE` and then by the maximum value of `RECORD_LENGTH`:
6464
```{r filter}
6565
hy_stn_data_range() %>%
6666
filter(DATA_TYPE == "Q", RECORD_LENGTH == max(RECORD_LENGTH))
@@ -136,7 +136,7 @@ library(ggplot2)
136136
library(lubridate)
137137
```
138138

139-
The pipe below finds the active station that has realtime data in the [Reference Hydrometric Basin Network](http://www.ec.gc.ca/rhc-wsc/default.asp?lang%20=En&n=E228B6E8-1) (RHBN) in the territory of Nunavut that has the longest record then grabs all the daily flow information:
139+
The pipe below finds the active station that has realtime data in the [Reference Hydrometric Basin Network](https://www.canada.ca/en/environment-climate-change/services/water-overview/quantity/monitoring/survey/data-products-services/reference-hydrometric-basin-network.html) (RHBN) in the territory of Nunavut that has the longest record then grabs all the daily flow information:
140140

141141
```{r}
142142
nunavut_stn_flows <- hy_stations() %>%

vignettes/tidyhydat_hydat_db.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ prev_default <- hy_set_default_db(hy_test_db())
3737

3838
## Working with HYDAT tables
3939

40-
The HYDAT database is a SQLite database, which can be accessed in R using the [dplyr](http://dplyr.tidyverse.org/) and [dbplyr](http://dbplyr.tidyverse.org/) packages. This package has simplified the connection process, so all you have to do to connect to the database is use `hy_src()`.
40+
The HYDAT database is a SQLite database, which can be accessed in R using the [dplyr](https://dplyr.tidyverse.org/) and [dbplyr](https://dbplyr.tidyverse.org/) packages. This package has simplified the connection process, so all you have to do to connect to the database is use `hy_src()`.
4141

4242
```{r}
4343
src <- hy_src()

0 commit comments

Comments
 (0)