Skip to content

Commit b9c215b

Browse files
"document" array and record_batch
1 parent edf6098 commit b9c215b

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

r/R/array.R

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,15 @@ MakeArray <- function(data){
8181
`arrow::Array`$new(data)
8282
}
8383

84+
#' create an arrow::Array from an R vector
85+
#'
86+
#' @param \dots Vectors to coerce
87+
#'
8488
#' @export
8589
array <- function(...){
8690
`arrow::Array`$new(vctrs::vec_c(...))
8791
}
8892

89-
9093
`arrow::RecordBatch` <- R6Class("arrow::RecordBatch", inherit = `arrow::Object`,
9194
public = list(
9295
initialize = function(.data){
@@ -98,6 +101,10 @@ array <- function(...){
98101
)
99102
)
100103

104+
#' Create an arrow::RecordBatch from a data frame
105+
#'
106+
#' @param data a data frame
107+
#'
101108
#' @export
102109
record_batch <- function(.data){
103110
`arrow::RecordBatch`$new(.data)

r/man/array.Rd

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r/man/record_batch.Rd

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r/src/Makevars.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
PKG_CPPFLAGS=@cflags@
1919
PKG_CXXFLAGS=$(C_VISIBILITY)
2020
CXX_STD=CXX11
21-
PKG_LIBS=@libs@
21+
PKG_LIBS=@libs@ -Wl,-rpath,/usr/local/lib

0 commit comments

Comments
 (0)