Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still can't normalize path in addResourcePath for Shiny app #415

Open
moshejasper opened this issue Jul 28, 2021 · 1 comment
Open

Still can't normalize path in addResourcePath for Shiny app #415

moshejasper opened this issue Jul 28, 2021 · 1 comment

Comments

@moshejasper
Copy link

Hi all,

Note that the below problem is linked to issues #320 and #384 . I am raising it here as I am using the latest versions of all programs and the issue is still persisting.

I have this problem currently with my app (embedded in my new R package found at https://cran.r-project.org/web/packages/kindisperse/index.html and https://github.com/moshejasper/kindisperse

When I install this package from github (as I did during testing), all files work fine (as they do with the old CRAN version I released several months back)...

HOWEVER, when I install the package (v0.10.1) from CRAN now (install.packages("kindisperse")) then run my embedded app , i.e. kindisperse::run_kindisperse(), I get the error described above, i.e. Couldn't normalize path in addResourcePath, with arguments: prefix= 'htmlwidgets-1.5.3';directoryPath = 'D:/temp/RtmpWINIYP/RLIBS_1bab82cd438f6/htmlwidgets/www'

I'm running htmlwidgets version 1.5.3.9000, shiny version 1.6.0

I assume the problem must somehow be with the CRAN build, as if I first install CRAN then instead install the most recent github version the problem persists, but if I install a substantially older github version then the most recent github version again, the problem is removed.

It's a recent issue (possibly connected to the htmlwidgets package) as my previous CRAN version I put up 3 months ago (0.9.2) runs the app fine, whereas this version doesn't.

I have checked all my native code both generally and the changes made between the two versions, and can't find anything that would trigger this issue.

The relevant function is on my github at "github.com/moshejasper/kindisperse/tree/main/R", at the very bottom of the file 'app.R' -

it is implemented run_kindisperse <- function() { shinyApp(ui = ui, server = server) }

@moshejasper
Copy link
Author

The key htmlwidgets dependency in this app comes via plotly: I use the three commands plotlyOutput, renderPlotly & ggplotly (the former two interact with this package).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant