我正在嘗試使用此存盤庫中的 meetupr 包:
...點擊允許后,會彈出一個新頁面...

按照說明關閉該頁面后,我在控制臺上看到了這一點:
> find_groups(text = "book")
Adding ~/.local/share/meetupr/meetupr-token.rds to .gitignore
Waiting for authentication in browser...
Press Esc/Ctrl C to abort
Authentication complete.
Downloading 16722 record(s)...
Error in curl::curl_fetch_memory(url, handle = handle) :
Operation was aborted by an application callback
我厭倦了等待下載那么多記錄并點擊逃脫,然后運行:
`meetupr-token` <- readRDS("/home/david/.local/share/meetupr/meetupr-token.rds")
`meetupr-token`
$`3a1a-munged--7b8e764968950`
<Token>
<oauth_endpoint>
authorize: https://secure.meetup.com/oauth2/authorize
access: https://secure.meetup.com/oauth2/access
<oauth_app> meetup
key: 2vag-munged-b32tca763m1
secret: <hidden>
<credentials> access_token, refresh_token, token_type, expires_in
---
所以檔案不是空的。然后我find_groups使用一個不太廣泛的搜索詞重新呼叫該函式,并得到(沒有任何彈出瀏覽器頁面):
find_groups(text = "Tai chi")
Downloading 863 record(s)...
# A tibble: 863 × 21
id name urlname status lat lon city state country created
<int> <chr> <chr> <chr> <dbl> <dbl> <chr> <chr> <chr> <dttm>
1 3.08e7 Beac… Beachs… active 35.2 -83.4 Fran… "NC" USA 2018-12-24 04:28:57
2 3.17e7 Tai … Tai-Ch… active 26.2 -80.3 Fort… "FL" USA 2019-04-25 16:10:30
3 3.46e7 The … the-ta… active 33.2 -117. Ocea… "CA" USA 2021-01-01 01:10:51
4 8.42e5 The … sifu-t… active 40.9 -73.8 Bron… "NY" USA 2007-11-26 02:16:11
5 2.68e7 Yang… Yangsh… active 51.8 -0.83 Ayle… "B9" United… 2017-12-07 09:00:56
6 3.40e7 Drag… Dragon… active 41.6 -72.8 Berl… "CT" USA 2020-08-02 11:18:44
7 2.68e7 Tai … Tai-Ch… active -33.9 18.5 Cape… "" South … 2017-12-08 23:39:01
8 2.39e7 The … The-Sc… active 50.8 -0.15 Brig… "P6" United… 2017-05-21 14:02:24
9 2.26e7 Auck… Auckla… active -36.8 175. Auck… "" New Ze… 2017-02-26 01:06:20
10 1.87e7 Tai … Larkers active 45.0 -93.2 Minn… "MN" USA 2015-06-26 16:27:37
# … with 853 more rows, and 11 more variables: members <int>, timezone <chr>,
# join_mode <chr>, visibility <chr>, who <chr>, location <chr>,
# organizer_id <int>, organizer_name <chr>, category_id <int>,
# category_name <chr>, resource <list>
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/377758.html
上一篇:如何使用所需的預測變數和因變數回歸協變數串列,并使用lme和lmer回傳系數和p值表
下一篇:帶有可選引數的多載方法
