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 when calling import_results #25

Closed kravitz-eli closed 4 years ago

kravitz-eli commented 4 years ago

I get an error when I run the example code for import_results() from the documentation.

When I run: `write.csv(litsearchr::scopus_example, paste(tempdir(), "/scopus.csv", sep = ""))

naive_results <- import_results(paste(tempdir(), "/", sep = ""))`

I get the error

Error: 'import_results' is not an exported object from 'namespace:synthesisr'

When I look at the source code of import_results, I see it calls synthesisr::import_results function (directory = NULL, filename = NULL, save_dataset = FALSE, verbose = TRUE, save_directory = "./") { df <- synthesisr:::import_results(directory = directory, filename = filename, save_dataset = save_dataset, save_directory = save_directory, verbose = verbose) return(df) }

I am using the most recent version of synthesisr and there is no function (private or public) called import_results.

ltwente commented 4 years ago

I have the same issue

elizagrames commented 4 years ago

There were updates to synthesisr that weren't reflected in the litsearchr wrapper functions, but this is now fixed in the latest release of litsearchr.