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

The `table` argument in `rio.db:::.import.rio_sqlite`: renaming or adding a `which` argument #5

Open
bokov opened this issue Oct 4, 2019 · 3 comments

Comments

@bokov
Copy link
Contributor

commented Oct 4, 2019

Suggested enhancement for consistency with rio.

Here is the current call signature:

> args(rio.db:::.import.rio_sqlite)
function (file, table, ...) 

The table argument plays the same role here as the which argument does in all the rio import functions. If there aren't a lot of packages depending on this one (and maybe there aren't since this isn't on CRAN) then can table be renamed to which?

Otherwise, can we alter the call signature as follows?

function (file, which, table = which, ...) 
@leeper

This comment has been minimized.

Copy link
Owner

commented Oct 5, 2019

Great idea.

This was mostly proof-of-concept - I was never sure if I was actually going to put this on CRAN. Would be happy to have you collaborate on it, if you think it's useful.

@bokov

This comment has been minimized.

Copy link
Contributor Author

commented Oct 5, 2019

I absolutely think it's useful. One of my goals is to solve the "mystery file" problem and sqlite files are among the ones I've seen getting sent to researchers who have no idea how to open them.

So are you okay with the simpler approach of renaming the second argument?

@leeper

This comment has been minimized.

Copy link
Owner

commented Oct 5, 2019

Yep!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.