shinylive::export failing with error in order() function and encoding?

,

I had previously been able to export a Shiny app to ShinyLive using:

shinylive::export(appdir = "../peditools_universal", destdir = "docs")

... but now it's failing with error:

Error in order(x, na.last = na.last, decreasing = decreasing, method = "radix") : 
  Character encoding must be UTF-8, Latin-1 or bytes

The file path does not have any unusual characters in it, and I haven't changed the directory.

Does anyone have suggestions on where I should look?

In case anyone else runs into this, I figured out the failure cause.

It's odd -- an unused directory and a file within it each contained the character. Both needed to be renamed to not include that character. Was never an issue before.

Neither this directory nor anything in it is referenced by the Shiny app, and I don't think peeky::peek_standalone_shinylive_app() reveals that directory or its contents, but apparently shinylive::export() now notices and fails if the offending filenames exist.

Not closing this as "Solved" in case anyone more familiar with shinylive::export() can weigh in on whether this is expected behavior.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.