Which of the following statement will install shiny?

[amp_mcq option1=”install.packages(“shiny”)” option2=”install.library(“shiny”)” option3=”install.lib(“shiny”)” option4=”all of the mentioned” correct=”option1″]

The correct answer is: A. install.packages(“shiny”)

The other options are incorrect because they do not install the shiny package.

  • B. install.library(“shiny”) is incorrect because it only loads the shiny package, it does not install it.
  • C. install.lib(“shiny”) is incorrect because it does not exist.

To install the shiny package, you can use the following command:

install.packages("shiny")

This will install the shiny package from CRAN. Once the package is installed, you can load it into your R session using the following command:

library(shiny)

You can then create shiny apps using the shiny package.

Exit mobile version