rstudio / htmltools

Tools for HTML generation and output
https://rstudio.github.io/htmltools/
215 stars 68 forks source link

couldn't normalize path #327

Closed stla closed 2 years ago

stla commented 2 years ago

Hello,

I added this html dependency in a package of mine, for a htmlwidget:

  htmlDependency(
    name = "SuperTinyIcons",
    version = "0.3.2",
    src = "www/SuperTinyIcons",
    stylesheet = "SuperTinyIcons.css",
    package = "jsTreeR",
    all_files = TRUE
  )

I have the file inst/www/SuperTinyIcons/SuperTinyIcons.css. However, when running a Shiny app using this package, the following error occurs:

Error in value[[3L]]: Couldn't normalize path in addResourcePath, with arguments: prefix = 'SuperTinyIcons-0.3.2'; directoryPath = ''

Do you have an idea of the cause of this error? I have other html dependencies included in the same way and they work fine. The only thing unusual is that I'm working in a non-master git branch.

I posted this question on SO but I doubt it will get an answer.

stla commented 2 years ago

It searches in the old location of the folder, that I included with shiny::addResourcePath. Why? Even after deleting and reinstalling the package. When I change the name in name = "SuperTinyIcons" there's no change in the error message. It really runs the code of the old version of the package!

stla commented 2 years ago

Even after removing the package I can still load it! Perhaps it is in another library folder, I gonna check. But it does not appear in the "Packages" pane of RStudio.

stla commented 2 years ago

No... :-(

stla commented 2 years ago

Stupid of me!!! I didn't update the YAML file!!