Skip to content

dpasta() fails with error invalid 'times' value #140

@turbanisch

Description

@turbanisch

I read in data from StackOverflow, hence the read_table() command. The resulting df looks innocuous but for some reason dpasta() cannot handle it:

library(tidyverse)

df <- read_table("
                 Date            burstID
2018-09-18      1
2018-09-18      2
2018-09-18      3
2018-09-18      4")

# this works: 
# datapasta::dpasta(as_tibble(mtcars))

# this doesn't
datapasta::dpasta(df)
#> Error in strrep(" ", char_length - nchar(char_vec)): invalid 'times' value

Created on 2023-11-10 with reprex v2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions