Entering edit mode
3.6 years ago
xxxxxxxx
▴
20
Trying this
MetaOmics tutorial using R language in windows
But after installation of "shiny package" when trying this script
shiny::runApp('metaOmics', port=9987, launch.browser=T)
it is showing Error
Error in loadNamespace(name) : there is no package called ‘shiny’
How to solve this problem?
What did it say when you ran
install.packages(shiny)
? I am guessing theshiny
installation was unsuccessful.WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/ Installing package into ‘C:/Users/kiit1/Documents/R/win-library/3.3’ (as ‘lib’ is unspecified) also installing the dependencies ‘magrittr’, ‘sass’, ‘httpuv’, ‘digest’, ‘htmltools’, ‘later’, ‘promises’, ‘rlang’, ‘fastmap’, ‘commonmark’, ‘glue’, ‘bslib’, ‘cachem’, ‘ellipsis’, ‘lifecycle’
There are binary versions available but the source versions are later: binary source needs_compilation magrittr 1.5 2.0.1 FALSE httpuv 1.4.1 1.6.0 TRUE digest 0.6.14 0.6.27 TRUE htmltools 0.3.6 0.5.1.1 TRUE later 0.7.1 1.2.0 TRUE promises 1.0.1 1.2.0.1 TRUE rlang 0.2.0 0.4.10 TRUE commonmark 1.4 1.7 TRUE glue 1.2.0 1.4.2 TRUE shiny 1.0.5 1.6.0 FALSE
Binaries will be installed Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘sass’ ‘fastmap’ ‘cachem’ ‘ellipsis’ These will not be installed trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/httpuv_1.4.1.zip' Content type 'application/zip' length 1118480 bytes (1.1 MB) downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/digest_0.6.14.zip' Content type 'application/zip' length 173830 bytes (169 KB) downloaded 169 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/htmltools_0.3.6.zip' Content type 'application/zip' length 617476 bytes (603 KB) downloaded 603 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/later_0.7.1.zip' Content type 'application/zip' length 605749 bytes (591 KB) downloaded 591 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/promises_1.0.1.zip' Content type 'application/zip' length 646670 bytes (631 KB) downloaded 631 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/rlang_0.2.0.zip' Content type 'application/zip' length 754726 bytes (737 KB) downloaded 737 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/commonmark_1.4.zip' Content type 'application/zip' length 267030 bytes (260 KB) downloaded 260 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/glue_1.2.0.zip' Content type 'application/zip' length 72364 bytes (70 KB) downloaded 70 KB
package ‘httpuv’ successfully unpacked and MD5 sums checked package ‘digest’ successfully unpacked and MD5 sums checked package ‘htmltools’ successfully unpacked and MD5 sums checked package ‘later’ successfully unpacked and MD5 sums checked package ‘promises’ successfully unpacked and MD5 sums checked package ‘rlang’ successfully unpacked and MD5 sums checked package ‘commonmark’ successfully unpacked and MD5 sums checked package ‘glue’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\kiit1\AppData\Local\Temp\RtmpSoxEPo\downloaded_packages installing the source packages ‘magrittr’, ‘bslib’, ‘lifecycle’, ‘shiny’
trying URL 'https://cran.rstudio.com/src/contrib/magrittr_2.0.1.tar.gz' Content type 'application/x-gzip' length 265580 bytes (259 KB) downloaded 259 KB
trying URL 'https://cran.rstudio.com/src/contrib/bslib_0.2.4.tar.gz' Content type 'application/x-gzip' length 3481982 bytes (3.3 MB) downloaded 3.3 MB
trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_1.0.0.tar.gz' Content type 'application/x-gzip' length 83389 bytes (81 KB) downloaded 81 KB
trying URL 'https://cran.rstudio.com/src/contrib/shiny_1.6.0.tar.gz' Content type 'application/x-gzip' length 4170497 bytes (4.0 MB) downloaded 4.0 MB
*** arch - i386 Warning: running command 'make -f "C:/PROGRA~1/R/R-33~1.1/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-33~1.1/share/make/winshlib.mk" SHLIB="magrittr.dll" OBJECTS="pipe.o utils.o"' had status 127 ERROR: compilation failed for package 'magrittr'
The downloaded source packages are in ‘C:\Users\kiit1\AppData\Local\Temp\RtmpSoxEPo\downloaded_packages’
how to install it properly?
As your output indicates, you need to install
Rtools
first. Take peek here if you need to figure out how to to install it on a Windows machine. Try installingshiny
after that, and it should probably work assuming no other prerequisites are unsatisfied.Thank you