Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

READMEのサンプルコードを動かすとError in .data$time となる #2

Open
KeachMurakami opened this issue Oct 8, 2024 · 1 comment

Comments

@KeachMurakami
Copy link
Owner

agrmeshが依存しているtidyncパッケージをver. 0.3.0からver. 0.4.0にアップデートすると以下のようなエラーが出ます。

point_daily_temp <-
    fetch_amgsds(
        lats = c(43, 26.2), lons = c(141.4, 127.7),  # 抽出対象の緯度・経度
        elements = "TMP_mea"                         # 抽出対象の気象・地理情報要素
    )

Error in `.data$time`:
! Column `time` not found in `.data`.
Backtrace:
  1. agrmesh::fetch_amgsds(...)
 22. rlang:::abort_data_pronoun(x, call = y)

一旦Rを再起動してからinstall.packages('https://cran.r-project.org/src/contrib/Archive/tidync/tidync_0.3.0.tar.gz', repos=NULL, type='source')として古いtidyncパッケージをインストールし、library(agrmesh)とすると正常に動作します。
これは暫定的な処置で、次回のアップデートでver. 0.4.0に対応する見込みです。

@KeachMurakami
Copy link
Owner Author

tidyncパッケージ側の不具合の可能性がある (ropensci/tidync#128) のでしばらく様子を見ます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant