ropensci / awardFindR

Scan multiple online grant databases for relevant awards
https://docs.ropensci.org/awardFindR
Other
16 stars 7 forks source link

Error in vignette #40

Closed maelle closed 9 months ago

maelle commented 11 months ago

Via https://ropensci.r-universe.dev/builds

We see

library("awardFindR")
nsf_and_nih <- search_awards(
  keywords = c("ethnography", "qualitative data"),
  sources = c("nsf", "nih"),
  from_date = "2018-01-01",
  to_date = "2018-05-01"
)
#> Warning in request(paste0(query_url, "&offset=", offset), "get", verbose): Bad
#> Request (HTTP 400).

#> Warning in request(paste0(query_url, "&offset=", offset), "get", verbose): Bad
#> Request (HTTP 400).
#> No results from NSF
#> Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, : arguments imply differing number of rows: 1, 0

Created on 2023-07-20 with reprex v2.0.2

maelle commented 10 months ago

@mccallc @adam3smith friendly reminder :smile_cat:

mccallc commented 9 months ago

OK, I think it should be good now!

maelle commented 9 months ago

yes, all green now, thank you! what was wrong?

mccallc commented 9 months ago

NSF changed their API endpoint and some syntax requirements. Had to update for those. thanks for alerting!