elizagrames / litsearchr

litsearchr is an R package to partially automate search term selection for systematic reviews using keyword co-occurrence networks. In addition to identifying search terms, it can write Boolean searches and translate them into over 50 languages.
https://elizagrames.github.io/litsearchr
101 stars 24 forks source link

Error with Scopus CSV file when running import_results() #24

Closed nscoble closed 4 years ago

nscoble commented 4 years ago

Great package and I also really loved your paper in Methods in Ecology and Evolution!

I'm running into an issue while trying to do one of the tutorials.

All works well until I get to the point of running:

naiveimport <- litsearchr::import_results(directory = "~/[my folder structure]/inst/extdata/borealis/", filename = NULL, save_dataset = FALSE)

I get this error back:

Error in all.equal(colnames(df), expected_columns) : object 'expected_columns' not found

I have poked around in the package but can't quite figure out the issue. It happens when using my own CSVs downloaded from Scopus, as well as when I just use the tutorial files in /inst/extdata/borealis/.

Any ideas would be a huge help!

nscoble commented 4 years ago

Ah — I have realised this is actually an issue with synthesisr so I have posted a ticket over there. Closing.