@@ -15,7 +15,7 @@ fetch_token <- function() {
15
15
stopifnot(" Internet connection is not available." = curl :: has_internet())
16
16
17
17
# 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" )
19
19
20
20
# abort if app technical parameters are missing, c.f. https://dev.netatmo.com/
21
21
stopifnot(" Client ID and secret are missing. Run `set_credentials()` first." = " netatmo" %in% keyring :: keyring_list()[[" keyring" ]])
@@ -25,7 +25,7 @@ fetch_token <- function() {
25
25
# do nothing if the token is already available
26
26
if (file.exists(" .httr-oauth" )) {
27
27
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." )
29
29
30
30
} else {
31
31
@@ -44,7 +44,7 @@ fetch_token <- function() {
44
44
app ,
45
45
scope = " read_station" )
46
46
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' ." )
48
48
}
49
49
}
50
50
@@ -124,7 +124,7 @@ is_expired <- function() {
124
124
stopifnot(" Internet connection is not available." = curl :: has_internet())
125
125
126
126
# 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" )
128
128
129
129
# abort if token is not available
130
130
stopifnot(" OAuth 2.0 token is missing. Run `fetch_token()` first." = file.exists(" .httr-oauth" ))
@@ -181,7 +181,7 @@ refresh_at <- function() {
181
181
stopifnot(" Internet connection is not available." = curl :: has_internet())
182
182
183
183
# 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" )
185
185
186
186
# abort if token is not available
187
187
stopifnot(" OAuth 2.0 token is missing. Run `fetch_token()` first." = file.exists(" .httr-oauth" ))
0 commit comments