Still can't normalize path in addResourcePath for Shiny app
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
Research direction
Start with the run_kindisperse function at the bottom of app.R in the linked kindisperse repository, then reproduce the failure using the CRAN installation and the reported htmlwidgets and Shiny versions. Compare the CRAN and GitHub package behavior and review linked issues #320 and #384. Done means identifying the cause of the addResourcePath normalization failure and documenting a verified fix or regression test.
Written by the indexing model from the issue text.
Description
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) }
- Dominant language
- R
- Stars
- 801
- Forks
- 203
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ramnathv/htmlwidgets
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ramnathv/htmlwidgets#307 · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
ramnathv/htmlwidgets#495 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ramnathv/htmlwidgets#492 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
ramnathv/htmlwidgets#489 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
ramnathv/htmlwidgets#488 · 1 comment ·
All issues in ramnathv/htmlwidgets
Similar issues
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
easystats/parameters#1290 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
corybrunson/ordr#91 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pharmaverse/admiralonco#366 ·