You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I issue the following call, I get document count == 0
clinicaltrials_count("Valérie Fonteyne")
However, if I change the "é" to a non-accented "e", I get a document count == 4
clinicaltrials_count("Valerie Fonteyne")
If I go to ClinicalTrials.gov web site and manually search for "Valérie Fonteyne", I get the correct 4 clinical trials, eg the same trials as when I download trials based on non-accented Valerie ("NCT01921803" "NCT02397434" "NCT02745587" "NCT02748200")
Same thing if I use "Véronique D'Hondt" (she has 7 documents).
Potential issue
I noticed how you call the clinicaltrials.gov API using the httr::GET() call, and I wonder if the problem is in how the call is made.
Potential fix
After some testing, I used the following call, which returns my 4 trials (it also works perfect with "Véronique D'Hondt").
The main difference is that I use the query=list....
result <- httr::GET(query_url, query=list(
term="("Valérie Fonteyne") AND cancer",
lup_s="01/1/1900",
studyxml="true"
), httr::write_disk(tmpzip, overwrite=T))
The text was updated successfully, but these errors were encountered:
Test case
If I issue the following call, I get document count == 0
clinicaltrials_count("Valérie Fonteyne")
However, if I change the "é" to a non-accented "e", I get a document count == 4
clinicaltrials_count("Valerie Fonteyne")
If I go to ClinicalTrials.gov web site and manually search for "Valérie Fonteyne", I get the correct 4 clinical trials, eg the same trials as when I download trials based on non-accented Valerie ("NCT01921803" "NCT02397434" "NCT02745587" "NCT02748200")
Same thing if I use "Véronique D'Hondt" (she has 7 documents).
Potential issue
I noticed how you call the clinicaltrials.gov API using the httr::GET() call, and I wonder if the problem is in how the call is made.
Potential fix
After some testing, I used the following call, which returns my 4 trials (it also works perfect with "Véronique D'Hondt").
The main difference is that I use the query=list....
result <- httr::GET(query_url, query=list(
term="("Valérie Fonteyne") AND cancer",
lup_s="01/1/1900",
studyxml="true"
), httr::write_disk(tmpzip, overwrite=T))
The text was updated successfully, but these errors were encountered: