Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Still can't normalize path in addResourcePath for Shiny app

Open
#415 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
r
Domain
web-dev

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ramnathv/htmlwidgets

All issues in ramnathv/htmlwidgets

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.