posit-dev / r-shinylive

https://posit-dev.github.io/r-shinylive/
Other
147 stars 15 forks source link

Switch from base64enc to jsonlite #78

Closed georgestagg closed 2 months ago

georgestagg commented 2 months ago

Base64 decoding of files in app.json is currently broken by the changes in #72. This PR switches to jsonlite's implementation (removing a dependency), and fixes the problem.

Also, use try() in the case of binary files so as to recover from a base64 decode error, since binary files likely don't affect the result of renv package dependency resolution in any case.