Does the same happen if you install the library system wide instead of per user?
# libpath might be a little different in your system since I don't know exactly which version of R are you using
install.packages("shiny", lib = "C:/Program Files/R/R-3.5.0/library")