Skip to content

Gallerier error produced by list.files() output #4

@andrewsrs

Description

@andrewsrs

Having a problem using gallerier as well as the previous lightbox demo that seems to stem from a different implementation of list.files(). All of your code uses a line like this to create a source dataframe:

` images <- data.frame(src = list.files('www/img',full.names = T)) %>%
+     tidyr::separate(col = 'src', c('txt', 'date', 'time', 'msec'), sep = '_|\\.', remove = FALSE)`

But in my R version (4.2.1) list.files() returns a simple character vector of only filenames with no date or time so this statement produces an error like
Expected 4 pieces. Missing pieces filled with NAin 40 rows [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ...].

This code seems to be embedded in the gallerier package making it unusable for me right now, as even the demo shiny app produces the same error. I'm sure this is something obvious I've overlooked--- any insight?
Thanks, Andrew

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