This is an automated email from the ASF dual-hosted git repository.
thisisnic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new cc9b89a041 MINOR: [R] Add note about the deprecated `type()` function
cc9b89a041 is described below
commit cc9b89a04143446482d66d4c35bfdf2312d90a05
Author: SHIMA Tatsuya <[email protected]>
AuthorDate: Tue Aug 9 13:20:03 2022 +0100
MINOR: [R] Add note about the deprecated `type()` function
The `type()` function was deprecated in #12817 (ARROW-15168), but the
documentation did not indicate that it had been deprecated.
Closes #13748 from eitsupi/r-deprecated-type
Authored-by: SHIMA Tatsuya <[email protected]>
Signed-off-by: Nic Crane <[email protected]>
---
r/R/type.R | 4 ++++
r/man/infer_type.Rd | 5 ++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/r/R/type.R b/r/R/type.R
index 14234131a5..0ec62eed83 100644
--- a/r/R/type.R
+++ b/r/R/type.R
@@ -58,6 +58,10 @@ FLOAT_TYPES <- c("float16", "float32", "float64",
"halffloat", "float", "double"
#' Infer the arrow Array type from an R object
#'
+#' Infer the arrow Array type from an R object.
+#'
+#' [type()] is deprecated in favor of [infer_type()].
+#'
#' @param x an R object (usually a vector) to be converted to an [Array] or
#' [ChunkedArray].
#' @param ... Passed to S3 methods
diff --git a/r/man/infer_type.Rd b/r/man/infer_type.Rd
index 88d6179e49..e340afa915 100644
--- a/r/man/infer_type.Rd
+++ b/r/man/infer_type.Rd
@@ -19,7 +19,10 @@ type(x)
An arrow \link[=data-type]{data type}
}
\description{
-Infer the arrow Array type from an R object
+Infer the arrow Array type from an R object.
+}
+\details{
+\code{\link[=type]{type()}} is deprecated in favor of
\code{\link[=infer_type]{infer_type()}}.
}
\examples{
infer_type(1:10)