unable to update htmltools to run shiny app

I'm struggling to get all the required packages updated and running for a shinyapp tutorial on my Mac. The latest issue when I try and run the sample code is the following:

shiny::runApp('~/Documents/my shiny apps/App-1')
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘htmltools’ 0.5.2 is already loaded, but >= 0.5.4 is required

So I ran variations of the following code:

packageVersion("htmltools") # confirms verion is 0.5.2
install.packages("htmltools", type = "binary")
update.packages("htmltools")
library(htmltools)
packageVersion("htmltools") # verion is still 0.5.2

The htmltools package isn't updating. Any idea what I'm doing wrong?

Hi @gawantang ,

which version of R are you using and whats the CRAN mirror you are using (you should see the download link when installing any package) ?

Like

install.packages("txtplot")

gives

Some text
https://packagemanager.rstudio.com/cran/latest/bin/windows/contrib/4.3/txtplot_1.0-4.zip

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.