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