Skip to content

Commit c0c351a

Browse files
committed
doc(*): apostrophes
1 parent f3b929b commit c0c351a

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: netatmo.weather
22
Title: R wrapper for Netatmo Weather API
3-
Version: 0.5.27
4-
Date: 2024-04-17
3+
Version: 0.5.28
4+
Date: 2024-04-18
55
Authors@R:
66
person("Dimitri", "Falk", , "falk.dimitri@eglv.de", role = c("aut", "cre"))
77
Description: Obtain station locations, metadata and measurements from Netatmo stations for the region specified.

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# version 0.5.27
1+
# version 0.5.28
22

33
## features
44

R/fetch_token.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fetch_token <- function() {
1515
stopifnot("Internet connection is not available." = curl::has_internet())
1616

1717
# abort if target host is not available
18-
stopifnot("`api.netatmo.com` is not available." = curl::nslookup("api.netatmo.com") == "20.23.199.179")
18+
stopifnot("'api.netatmo.com' is not available." = curl::nslookup("api.netatmo.com") == "20.23.199.179")
1919

2020
# abort if app technical parameters are missing, c.f. https://dev.netatmo.com/
2121
stopifnot("Client ID and secret are missing. Run `set_credentials()` first." = "netatmo" %in% keyring::keyring_list()[["keyring"]])
@@ -25,7 +25,7 @@ fetch_token <- function() {
2525
# do nothing if the token is already available
2626
if (file.exists(".httr-oauth")) {
2727

28-
message("Note: OAuth 2.0 token is already available in file `.httr-oauth`. Delete it in case you want to re-authenticate.")
28+
message("Note: OAuth 2.0 token is already available in file '.httr-oauth'. Delete it in case you want to re-authenticate.")
2929

3030
} else {
3131

@@ -44,7 +44,7 @@ fetch_token <- function() {
4444
app,
4545
scope = "read_station")
4646

47-
message("Note: OAuth 2.0 access credentials successfully cached in file `.httr-oauth`.")
47+
message("Note: OAuth 2.0 access credentials successfully cached in file '.httr-oauth'.")
4848
}
4949
}
5050

@@ -124,7 +124,7 @@ is_expired <- function() {
124124
stopifnot("Internet connection is not available." = curl::has_internet())
125125

126126
# abort if target host is not available
127-
stopifnot("`api.netatmo.com` is not available." = curl::nslookup("api.netatmo.net") == "20.23.199.179")
127+
stopifnot("'api.netatmo.com' is not available." = curl::nslookup("api.netatmo.net") == "20.23.199.179")
128128

129129
# abort if token is not available
130130
stopifnot("OAuth 2.0 token is missing. Run `fetch_token()` first." = file.exists(".httr-oauth"))
@@ -181,7 +181,7 @@ refresh_at <- function() {
181181
stopifnot("Internet connection is not available." = curl::has_internet())
182182

183183
# abort if target host is not available
184-
stopifnot("`api.netatmo.com` is not available." = curl::nslookup("api.netatmo.net") == "20.23.199.179")
184+
stopifnot("'api.netatmo.com' is not available." = curl::nslookup("api.netatmo.net") == "20.23.199.179")
185185

186186
# abort if token is not available
187187
stopifnot("OAuth 2.0 token is missing. Run `fetch_token()` first." = file.exists(".httr-oauth"))

R/get_measure.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ get_measure <- function(devices = NULL,
5555
stopifnot("Internet connection is not available." = curl::has_internet())
5656

5757
# abort if target host is not available
58-
stopifnot("`api.netatmo.com` is not available." = curl::nslookup("api.netatmo.com") == "20.23.199.179")
58+
stopifnot("'api.netatmo.com' is not available." = curl::nslookup("api.netatmo.com") == "20.23.199.179")
5959

6060
# abort if token is not available
6161
stopifnot("OAuth 2.0 token is missing. Run `fetch_token()` first." = file.exists(".httr-oauth"))
@@ -154,7 +154,7 @@ get_measure <- function(devices = NULL,
154154
if (nm > 500) {
155155

156156
input <- menu(c("Yes", "No"),
157-
title = "You are about to exceed your hourly limit of 500 requests (and risking to be temporarily banned from the API).
157+
title = "You are about to exceed your hourly limit of 500 requests (and risking to be banned from using the API).
158158
Do you really want to continue?")
159159

160160
if (input == 2) {

R/get_publicdata.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ get_publicdata <- function(ext = NULL,
4545
stopifnot("Internet connection is not available." = curl::has_internet())
4646

4747
# abort if target host is not available
48-
stopifnot("`api.netatmo.com` is not available." = curl::nslookup("api.netatmo.com") == "20.23.199.179")
48+
stopifnot("'api.netatmo.com' is not available." = curl::nslookup("api.netatmo.com") == "20.23.199.179")
4949

5050
# abort if token is not available
5151
stopifnot("OAuth 2.0 token is missing. Run `fetch_token()` first." = file.exists(".httr-oauth"))

0 commit comments

Comments
 (0)