Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Improve Handling of Query Limit Issues #13

Open
Assignees
rywhale
Labels
bugtodoPriority features to implement
@Nova-Scotia

Description

@Nova-Scotia

I just updatedkiwisR to take advantage of some newer functionality (ability to query other fields withki_timeseries_values - thanks for adding this)!

Previously, I could run this code without errors:

library(tidyverse)library(kiwisR)# List all stations in swmc hub that match "SNOW-WLF" mystations <- ki_station_list(hub = myhub) %>%   filter(str_sub(station_no, 1, 8) == "SNOW-WLF" &           !station_no %in% c("SNOW-WLF-XX", "SNOW-WLF-TEMP"))# List all codes that connect the station codes with their available time series.my_station_ids <- unique(mystations$station_id)# List all timeseries associated with each code.available_ts <- ki_timeseries_list(  hub = myhub,   station_id = my_station_ids)

Now, when I run the last line of code (list all timeseries associated with each code), I get the error,"Error: object of type 'closure' is not subsettable".

I tried putting the last line in a loop and it works ok - I thought I could find the problem station by doing this here, but I didn't.

for (i in seq_along(my_station_ids)) {available_ts <- ki_timeseries_list(  hub = myhub,   station_id = my_station_ids[i])}

Can you reproduce this issue? If so, any idea on how to fix it?

Metadata

Metadata

Assignees

Labels

bugtodoPriority features to implement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp