I am trying to update shiny to version 1.1 from 1.0. I have installed it several times with install.packages(shiny) but each time I check packageVersion("shiny") I still see version 1.0. Because of this, I am unable to run my app which contains a data table. Here is the error message I get:
Loading required package: shiny
Warning: package ‘shinythemes’ was built under R version 3.3.3
Warning: package ‘DT’ was built under R version 3.3.3
Attaching package: ‘DT’
The following objects are masked from ‘package:shiny’:
dataTableOutput, renderDataTable
Error in checkShinyVersion() :
Please upgrade the 'shiny' package to (at least) version 1.1
Hi @iFeanyi - can you provide the exact code and the console output you are using to install the package as well as load it? If you can, use the reprex so that all the code and output is available to help diagnose the problem you are having.
Hi, I downloaded and installed the Rtool, and then installed shiny from source using install.packages("shiny",type="source") Now when I tried to run the app, I am getting the following error message:
Error in library.dynam(lib, package, package.lib) :
DLL ‘httpuv’ not found: maybe not installed for this architecture?
I just tried to re-download and install shiny from the CRAN site, but here is the message I got:
install.packages("shiny")
There is a binary version available but the source version is
later:
binary source needs_compilation
shiny 1.0.5 1.1.0 FALSE
installing the source package ‘shiny’
trying URL 'https://cran.rstudio.com/src/contrib/shiny_1.1.0.tar.gz'
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cran.rstudio.com/src/contrib/shiny_1.1.0.tar.gz'
Warning in install.packages :
download of package ‘shiny’ failed
There are two different types of install problems happening here. First, the installation of both httpuv and shiny failed with the same symptoms:
This can happen when a previous installation attempt ended unexpectedly, before R had time to clean up some of the intermediate files it creates during installation. Have you tried removing those lock files, as R suggests?
Meanwhile, the second error:
This indicates that after package installation had begun, something went wrong with R's internet connection (if this has happened before, it could be the reason you have those intermediate files hanging around). This isn't easy to debug from afar — it most likely has to do with the reliability of your local network or its connection to the internet.
Overall, though, is there a reason you are still running R 3.3? (that version is from 2 years ago — the current version is 3.5.1) Updating R to the latest version will mean that many more packages have available binaries, easing your installation process considerably.
Yes, I have removed the lock files, and have succeeded in updating shiny to version 1.1, and my app now runs again. But could the version of R I am running be the reason why the 'Buttons' extension for data table is not working well? I have added the extension code, but only the 'copy' and 'print' buttons work, and the 'pdf' and 'csv' buttons do not work.
I think this is unlikely? Since your question about that code isn't really related to the rest of this topic, I'm going to keep things tidy and move it to its own topic.