science-collective / scoping-review

A scoping review of open collaboration within scientific research
2 stars 2 forks source link

Issues with search-terms.R #40

Closed MarioGuCBMR closed 1 year ago

MarioGuCBMR commented 1 year ago

Hi all,

I have been trying to reproduce the code for arxiv and medrxiv, but an error occurs when the query is done. The problem lies when using the function search_terms from search-terms.R.

As you know the function returns the search terms according to the "engine" you introduce as input. Right now the arxiv and medrxiv code load this as:

query = search_terms$medrxiv #this seems like search_terms was a dataframe with the searching terms once, but now it is a function and, of course, the code fails.

To solve this issue we just need to properly call the function:

query = search_terms("medrxiv") #this solves the issue!!

If you give the thumbs up I will change the code accordingly!!