Skip to content

Commit

Permalink
Merge pull request #46 from duckdblabs/f-cran-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr authored Sep 10, 2023
2 parents bd3ba26 + 1d24518 commit c49a20d
Show file tree
Hide file tree
Showing 45 changed files with 1,629 additions and 693 deletions.
4 changes: 4 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@
^R/meta\.R$
^R/tpch_raw_(?:oo_)?[0-9]+\.R$
^.ccache$
^_pkgdown\.yml$
^docs$
^pkgdown$
^cran-comments\.md$
4 changes: 4 additions & 0 deletions .aspell/defaults.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Rd_files <- vignettes <- R_files <- description <-
list(encoding = "UTF-8",
language = "en",
dictionaries = c("en_stats", "duckplyr"))
Binary file added .aspell/duckplyr.rds
Binary file not shown.
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/pkg.lock
*.html
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.Rproj.user
/.ccache/
/docs
10 changes: 6 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ Package: duckplyr
Title: A DuckDB-backed version of dplyr
Version: 0.0.1
Authors@R: c(
person("Hannes", "Mühleisen", , "[email protected]", role = c("aut", "cre"),
person("Hannes", "Mühleisen", role = "aut",
comment = c(ORCID = "0000-0001-8552-0029")),
person("Kirill", "Müller", role = "aut",
person("Kirill", "Müller", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-1416-3412")),
person("Posit", role = c("cph", "fnd"))
person("Posit Software, PBC", role = c("cph", "fnd"))
)
Description: Implements a subset of dplyr using DuckDB.
Description: A drop-in replacement for dplyr, powered by DuckDB for performance.
Also defines a set of generics that provide a low-level
implementer's interface for the high-level user interface of dplyr.
License: MIT + file LICENSE
URL: https://github.com/duckdblabs/duckplyr
BugReports: https://github.com/duckdblabs/duckplyr/issues
Expand Down
102 changes: 98 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ S3method(distinct,duckplyr_df)
S3method(do,duckplyr_df)
S3method(dplyr_reconstruct,duckplyr_df)
S3method(explain,duckplyr_df)
S3method(format,relational_relexpr)
S3method(full_join,duckplyr_df)
S3method(group_vars,duckplyr_df)
S3method(head,duckplyr_df)
Expand Down Expand Up @@ -55,8 +54,6 @@ S3method(rel_set_symdiff,duckdb_relation)
S3method(rel_set_symdiff,relational_df)
S3method(rel_to_df,duckdb_relation)
S3method(rel_to_df,relational_df)
S3method(rel_tostring,duckdb_relation)
S3method(rel_tostring,relational_df)
S3method(rel_union_all,duckdb_relation)
S3method(rel_union_all,relational_df)
S3method(relocate,duckplyr_df)
Expand Down Expand Up @@ -84,15 +81,69 @@ S3method(transmute,duckplyr_df)
S3method(ungroup,duckplyr_df)
S3method(union,duckplyr_df)
S3method(union_all,duckplyr_df)
export(across)
export(add_count)
export(add_tally)
export(all_equal)
export(anti_join)
export(arrange)
export(as_duckplyr_df)
export(auto_copy)
export(c_across)
export(case_when)
export(collapse)
export(collect)
export(compute)
export(count)
export(cross_join)
export(desc)
export(distinct)
export(do)
export(dplyr_col_modify)
export(dplyr_reconstruct)
export(dplyr_row_slice)
export(duckdb_from_file)
export(duckdb_rel_from_df)
export(duckplyr_df_from_file)
export(explain)
export(filter)
export(first)
export(full_join)
export(funs)
export(funs_)
export(group_by)
export(group_data)
export(group_keys)
export(group_map)
export(group_modify)
export(group_rows)
export(group_size)
export(group_vars)
export(group_walk)
export(if_all)
export(if_any)
export(inner_join)
export(intersect)
export(is_duckplyr_df)
export(is_grouped_df)
export(join_by)
export(lag)
export(last)
export(lead)
export(left_join)
export(methods_overwrite)
export(methods_restore)
export(mutate)
export(mutate_all)
export(n)
export(n_distinct)
export(nest_by)
export(nest_join)
export(new_relational)
export(new_relexpr)
export(nth)
export(pull)
export(reframe)
export(rel_aggregate)
export(rel_alias)
export(rel_distinct)
Expand All @@ -109,14 +160,57 @@ export(rel_set_diff)
export(rel_set_intersect)
export(rel_set_symdiff)
export(rel_to_df)
export(rel_tostring)
export(rel_union_all)
export(relexpr_constant)
export(relexpr_function)
export(relexpr_reference)
export(relexpr_set_alias)
export(relexpr_window)
export(relocate)
export(rename)
export(rename_all)
export(rename_at)
export(rename_if)
export(rename_with)
export(right_join)
export(row_number)
export(rows_append)
export(rows_delete)
export(rows_insert)
export(rows_patch)
export(rows_update)
export(rows_upsert)
export(rowwise)
export(same_src)
export(sample_frac)
export(sample_n)
export(select)
export(select_all)
export(select_at)
export(select_if)
export(semi_join)
export(setdiff)
export(setequal)
export(slice)
export(slice_head)
export(slice_max)
export(slice_min)
export(slice_sample)
export(slice_tail)
export(stats_show)
export(summarise)
export(summarise_all)
export(summarise_at)
export(summarize)
export(symdiff)
export(tally)
export(tbl_vars)
export(transmute)
export(ungroup)
export(union)
export(union_all)
export(vars)
export(with_groups)
export(wrap_df)
export(wrap_integer)
import(rlang)
Expand Down
28 changes: 28 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->

# duckplyr 0.1.0 (2023-07-03)

## Bug fixes

- Fix examples.

## Chore

- Add CRAN install instructions.
- Satisfy `R CMD check`.
- Document argument.
- Error on NOTE.
- Remove `relexpr_window()` for now.

## Documentation

- Clean up reference.

## Uncategorized

Initial version, exporting:
- `new_relational()` to construct objects of class `"relational"`
- Generics `rel_aggregate()`, `rel_distinct()`, `rel_filter()`, `rel_join()`, `rel_limit()`, `rel_names()`, `rel_order()`, `rel_project()`, `rel_set_diff()`, `rel_set_intersect()`, `rel_set_symdiff()`, `rel_to_df()`, `rel_union_all()`
- `new_relexpr()` to construct objects of class `"relational_relexpr"`
- Expression builders `relexpr_constant()`, `relexpr_function()`, `relexpr_reference()`, `relexpr_set_alias()`, `relexpr_window()`

Loading

0 comments on commit c49a20d

Please sign in to comment.