Created
March 4, 2021 12:40
-
-
Save tetlabo/8fea9748bd4392b8a08e388acbe4cf8e to your computer and use it in GitHub Desktop.
owmrパッケージを使ってOpenWeatherから現在の東京の気温を取得する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# owmrパッケージは、GitHub版でないと、APIキーの認証がうまくいきませんでした。 | |
# https://github.com/crazycapivara/owmr | |
library(tidyverse) | |
library(owmr) | |
Sys.setenv(OWM_API_KEY = "APIキーを指定してください") | |
(tokyo_temper <- get_current("Tokyo", units = "metric") %>% owmr_as_tibble() %>% pull(temp)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment