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

Consider adding writing functionality #3

Open
SimonGreenhill opened this issue Jul 18, 2019 · 1 comment
Open

Consider adding writing functionality #3

SimonGreenhill opened this issue Jul 18, 2019 · 1 comment

Comments

@SimonGreenhill
Copy link
Owner

What would the API be?

Need to:

  1. Generate metadata
  2. identify/specify foreign keys
  3. specify table types
  4. add/remove tables.
# work off data.frames?
> write.cldf(table1, table2, table3, directory="xxx")

# work off a CLDF object?
> obj <- cldf()  # empty
> add_table(obj, name, table, type="wordlist")
> add_foreign_key(obj, 'a', 'b')
> make_metadata(obj)
> write.cldf(obj, directory="xxx")

@SimonGreenhill SimonGreenhill changed the title Add writing functionality Consider adding writing functionality Jul 18, 2019
@SimonGreenhill
Copy link
Owner Author

See #5

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

1 participant