Search tests failing
jonthegeek opened this issue · 2 comments
jonthegeek commented
library(pkgsearch)
x <- ps("csardi")
"cli" %in% x$package
#> [1] FALSE
x
#> - "csardi" -------------------------------------- 19602 packages in 0 seconds -
#> # package version by @ title
#> 1 100 PAMA 1.2.0 Wanchuang Zhu 2y Rank Aggregation with Pa...
#> 2 100 SelvarMix 1.2.1 Mohammed Sedki 5y Regularization for Varia...
#> 3 100 DynComm 2020.1.6 Rui P. Sarmento 2y Dynamic Network Communit...
#> 4 100 ExGaussEstim 0.1 Yousri SLAOUI 5M Quantile Maximization Li...
#> 5 100 DepCens 0.2.1 Silvana Schneider 8M Dependent Censoring Regr...
#> 6 100 sybil 2.2.0 Mayo Roettger 2y Efficient Constrained Ba...
#> 7 100 seplyr 1.0.4 John Mount 1y Improved Standard Evalua...
#> 8 100 EpiNow2 1.3.2 Sam Abbott 2y Estimate Real-Time Case ...
#> 9 100 rSPARCS 0.1.0 Wangjian Zhang 2y Sites, Population, and R...
#> 10 100 cRegulome 0.3.2 Mahmoud Ahmed 3y Obtain and Visualize Reg...
y <- ps("literally anything")
identical(y$package, x$package)
#> [1] TRUE
Created on 2023-01-25 with reprex v2.0.2
It kind of works if I add "%+% &q=<original_query>" in the url in do_query()
, but the more complex query doesn't appear to doing anything through the curl::handle_setopt()
call in http_post()
.
As far as I can tell, the issue is at the API end (or perhaps in the format in which the query is being sent to the API). Did something change in the API?
I'm willing to help solve / to submit a PR, but I'm not sure where to start.
maelle commented
@gaborcsardi do you have any update regarding this and #113? Thank you 😸