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

Search tests failing #114

Open
jonthegeek opened this issue Jan 25, 2023 · 2 comments
Open

Search tests failing #114

jonthegeek opened this issue Jan 25, 2023 · 2 comments

Comments

@jonthegeek
Copy link

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
Copy link
Member

maelle commented Jan 26, 2023

@gaborcsardi do you have any update regarding this and #113? Thank you 😸

@dat-linux
Copy link

Now it's not working correctly. #115

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

3 participants