[
https://issues.apache.org/jira/browse/ARROW-6348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16915159#comment-16915159
]
Neal Richardson commented on ARROW-6348:
----------------------------------------
It's a namespace issue. That shouldn't error and I can make it work, but you
can solve this now by just loading {{library(arrow):}}
{code:r}
> write.csv(iris, "iris.csv")
> test <- arrow::read_csv_arrow("iris.csv")
Error in read_delim_arrow(file = "iris.csv", delim = ",") :
could not find function "read_delim_arrow"
> library(arrow)
Attaching package: ‘arrow’
The following object is masked from ‘package:utils’:
timestamp
> test <- read_csv_arrow("iris.csv")
> head(test)
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1 1 5.1 3.5 1.4 0.2 setosa
2 2 4.9 3.0 1.4 0.2 setosa
3 3 4.7 3.2 1.3 0.2 setosa
4 4 4.6 3.1 1.5 0.2 setosa
5 5 5.0 3.6 1.4 0.2 setosa
6 6 5.4 3.9 1.7 0.4 setosa
{code}
> [R] arrow::read_csv_arrow namespace error when package not loaded
> -----------------------------------------------------------------
>
> Key: ARROW-6348
> URL: https://issues.apache.org/jira/browse/ARROW-6348
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Reporter: hugh marera
> Priority: Minor
> Fix For: 0.15.0
>
>
> {quote}I am not sure if the arrow::read_csv_arrow() error below is a bug or a
> feature?
>
> data("iris")
> write.csv(iris, "iris.csv")
> test <- arrow::read_csv_arrow("iris.csv")
> Error in read_delim_arrow(file = "iris.csv", delim = ",") :
> could not find function "read_delim_arrow"
> test <- arrow::read_delim_arrow("iris.csv")
> sessionInfo()
> R version 3.6.1 (2019-07-05)
> Platform: x86_64-apple-darwin18.6.0 (64-bit)
> Running under: macOS Mojave 10.14.6
> {quote}
> Matrix products: default
> BLAS:
> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
> LAPACK: /usr/local/Cellar/openblas/0.3.7/lib/libopenblasp-r0.3.7.dylib
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
> attached base packages:
> [1] stats graphics grDevices utils datasets
> [6] methods base
> loaded via a namespace (and not attached):
> [1] tidyselect_0.2.5 bit_1.1-14 compiler_3.6.1
> [4] magrittr_1.5 assertthat_0.2.1 R6_2.4.0
> [7] tools_3.6.1 fs_1.3.1 glue_1.3.1
> [10] Rcpp_1.0.2 bit64_0.9-7 arrow_0.14.1.1
> [13] rlang_0.4.0 purrr_0.3.2
--
This message was sent by Atlassian Jira
(v8.3.2#803003)