Skip to content

Commit

Permalink
Todo.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Jul 28, 2024
1 parent 53e4720 commit c769a4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vignettes/intro-to-interface.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Define functions with strict type constraints:
typed_fun <- fun(
x = numeric,
y = numeric,
return = numeric,
return_type = numeric,
impl = function(x, y) {
return(x + y)
}
Expand Down Expand Up @@ -288,6 +288,8 @@ print(typed_fun2(1, 2)) # [1] 3
print(typed_fun2("a", 2)) # [1] "a 2"
```

<!-- TODO: custom return functions for typed fun and enums -->

### Typed `data.frame`/`data.table`s

Create data frames with column type constraints and row validation:
Expand Down

0 comments on commit c769a4a

Please sign in to comment.