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

detect_database() function: expected_columns not found #5

Closed
nscoble opened this issue Oct 29, 2019 · 1 comment
Closed

detect_database() function: expected_columns not found #5

nscoble opened this issue Oct 29, 2019 · 1 comment

Comments

@nscoble
Copy link

nscoble commented Oct 29, 2019

When running synthesisr (via litsearchr), importing files results in the error:

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

I think this might be because of the recent changes to recognize preformatted files.

On line 144 of import_functions.R:
all.equal(colnames(df), expected_columns)

I think because expected_columns isn't defined anywhere there, it is throwing an error.

I am an R noob so I'm not sure what is going on, but when I am exploring the package Environment (in RStudio), I can see the expected_columns variable does have all the values listed in it. I'm just not sure why the function can't access that when it runs.

Thanks again for your amazing packages!

@mjwestgate
Copy link
Owner

Just checking old issues and found this one - sorry to return to this 18 months late! I think this question is obsolete now as expected_columns doesn't occur anywhere in the synthesisr repo. I'll close this as a result, but can reopen if it's still an issue.

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

2 participants