Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

count_fields() off-by-one #200

Closed
npjc opened this issue Jun 18, 2015 · 1 comment
Closed

count_fields() off-by-one #200

npjc opened this issue Jun 18, 2015 · 1 comment

Comments

@npjc
Copy link
Contributor

npjc commented Jun 18, 2015

count_fields("1\t2\n", tokenizer_tsv())
#> [1] 1

I would have expected 2 fields given:

str(read_tsv("1\t2\n", col_names = F))
#> Classes ‘tbl_df’, ‘tbl’ and 'data.frame':    1 obs. of  2 variables:
#> $ X1: int 1
#> $ X2: int 2

sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.3 (Yosemite)

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] readr_0.1.0.9000

loaded via a namespace (and not attached):
[1] tools_3.2.0 Rcpp_0.11.6
@hadley
Copy link
Member

hadley commented Sep 3, 2015

Fixed in cf37840

@hadley hadley closed this as completed Sep 3, 2015
@lock lock bot locked and limited conversation to collaborators Sep 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants