R/install_imports.R

Defines functions install_imports

Documented in install_imports

#' @title   Installer.
#'@description    This is an installer for  required packages in this package.
#  @export install_dependencies
#'To install this package BayesianFROC, we use the package xlsx which require the Java. So, if use buy a new computer and and it does not have installed the Java, then please install Java.




# devtools::document()
install_imports <-function(){




  # ##########################################################
  #
  #
  # tryCatch({
  #   library(cranlogs)
  # }, error = function(e) {
  #   install.packages("cranlogs")
  #   library(cranlogs)
  # })
  #
  #
  # if("cranlogs" %in% installed.packages()[,1]){
  #   library(cranlogs)
  # }else{
  #   install.packages("cranlogs")
  #   library(cranlogs)
  # }
  #
  # ########################################################















  # ##########################################################
  #
  #
  # tryCatch({
  #   library(pracma)
  # }, error = function(e) {
  #   install.packages("pracma")
  #   library(pracma)
  # })
  #
  #
  # if("pracma" %in% installed.packages()[,1]){
  #   library(pracma)
  # }else{
  #   install.packages("pracma")
  #   library(pracma)
  # }
  #
  # ########################################################













  # ##########################################################
  #
  #
  # tryCatch({
  #   library(microbenchmark)
  # }, error = function(e) {
  #   install.packages("microbenchmark")
  #   library(microbenchmark)
  # })
  #
  #
  # if("microbenchmark" %in% installed.packages()[,1]){
  #   library(microbenchmark)
  # }else{
  #   install.packages("microbenchmark")
  #   library(microbenchmark)
  # }
  #
  # ########################################################





















  # ##########################################################
  #
  #
  # tryCatch({
  #   library(spelling)
  # }, error = function(e) {
  #   install.packages("spelling")
  #   library(spelling)
  # })
  #
  #
  # if("spelling" %in% installed.packages()[,1]){
  #   library(spelling)
  # }else{
  #   install.packages("spelling")
  #   library(spelling)
  # }
  #
  # ########################################################














  # ##########################################################
  #
  #
  # tryCatch({
  #   library(usethis)
  # }, error = function(e) {
  #   install.packages("usethis")
  #   library(usethis)
  # })
  #
  #
  # if("usethis" %in% installed.packages()[,1]){
  #   library(usethis)
  # }else{
  #   install.packages("usethis")
  #   library(usethis)
  # }
  #
  # ########################################################





  # ##########################################################
  #
  #
  # tryCatch({
  #   library(devtools)
  # }, error = function(e) {
  #   install.packages("devtools")
  #   library(devtools)
  # })
  #
  #
  # if("devtools" %in% installed.packages()[,1]){
  #   library(devtools)
  # }else{
  #   install.packages("devtools")
  #   library(devtools)
  # }
  #
  # ####################
  #
  # tryCatch({
  #   library(knitr)
  # }, error = function(e) {
  #   install.packages("knitr")
  #   library(knitr)
  # })
  #
  #
  # if("knitr" %in% installed.packages()[,1]){
  #   library(knitr)
  # }else{
  #   install.packages("knitr")
  #   library(knitr)
  # }
  # ##########################################################
  #
  #
  # tryCatch({
  #   library(rstan)
  # }, error = function(e) {
  #   install.packages("rstan")
  #   library(rstan)
  # })
  #
  #
  # if("rstan" %in% installed.packages()[,1]){
  #   library(rstan)
  # }else{
  #   install.packages("rstan")
  #   library(rstan)
  # }
  #
  # ########################################################
  #
  #
  # tryCatch({
  #   library(readxl)
  # }, error = function(e) {
  #   install.packages("readxl")
  #   library(readxl)
  # })
  #
  #
  # if("readxl" %in% installed.packages()[,1]){
  #   library(readxl)
  # }else{
  #   install.packages("readxl")
  #   library(readxl)
  # }
  #
  # #############################################
  #
  #
  # #############################################
  #
  #
  # tryCatch({
  #   library(openxlsx)
  # }, error = function(e) {
  #   install.packages("openxlsx")
  #   library(openxlsx)
  # })
  #
  #
  # if("openxlsx" %in% installed.packages()[,1]){
  #   library(openxlsx)
  # }else{
  #   install.packages("openxlsx")
  #   library(openxlsx)
  # }
  #
  # #############################################
  #
  #
  #
  #
  # tryCatch({
  #   library(xlsx)
  # }, error = function(e) {
  #   install.packages("xlsx")
  #   library(xlsx)
  # })
  # ##To install this package BayesianFROC, we use the package xlsx which require the Java. So, if use buy a new computer and and it does not have installed the Java, then please install Java.

  #
  # if("xlsx" %in% installed.packages()[,1]){
  #   library(xlsx)
  # }else{
  #   install.packages("xlsx")
  #   library(xlsx)
  # }
  #
  # #############################################
  #
  #
  #
  # tryCatch({
  #   library(gridExtra)
  # }, error = function(e) {
  #   install.packages("gridExtra")
  #   library(gridExtra)
  # })
  #
  #
  # if("gridExtra" %in% installed.packages()[,1]){
  #   library(gridExtra)
  # }else{
  #   install.packages("gridExtra")
  #   library(gridExtra)
  # }

  #############################################













  #
  #
  # tryCatch({
  #   library(knitr)
  # }, error = function(e) {
  #   install.packages("knitr")
  #   library(knitr)
  # })
  #
  #
  # if("knitr" %in% installed.packages()[,1]){
  #   library(knitr)
  # }else{
  #   install.packages("knitr")
  #   library(knitr)
  # }

  #############################################





  #
  #
  # tryCatch({
  #   library(roxygen2)
  # }, error = function(e) {
  #   install.packages("roxygen2")
  #   library(roxygen2)
  # })
  #
  #
  # if("roxygen2" %in% installed.packages()[,1]){
  #   library(roxygen2)
  # }else{
  #   install.packages("roxygen2")
  #   library(roxygen2)
  # }

  #############################################



  #
  #
  # tryCatch({
  #   library(readxl)
  # }, error = function(e) {
  #   install.packages("readxl")
  #   library(readxl)
  # })
  #
  #
  # if("readxl" %in% installed.packages()[,1]){
  #   library(readxl)
  # }else{
  #   install.packages("readxl")
  #   library(readxl)
  # }

  #############################################




  #
  #
  # tryCatch({
  #   library(openxlsx)
  # }, error = function(e) {
  #   install.packages("openxlsx")
  #   library(openxlsx)
  # })
  #
  #
  # if("openxlsx" %in% installed.packages()[,1]){
  #   library(openxlsx)
  # }else{
  #   install.packages("openxlsx")
  #   library(openxlsx)
  # }

  #############################################






  #
  #
  # tryCatch({
  #   library(xlsx)
  # }, error = function(e) {
  #   install.packages("xlsx")
  #   library(xlsx)
  # })
  #
  #
  # if("xlsx" %in% installed.packages()[,1]){
  #   library(xlsx)
  # }else{
  #   install.packages("xlsx")
  #   library(xlsx)
  # }

  #############################################







  #
  #
  # tryCatch({
  #   library(rstantools)
  # }, error = function(e) {
  #   install.packages("rstantools")
  #   library(rstantools)
  # })
  #
  #
  # if("rstantools" %in% installed.packages()[,1]){
  #   library(rstantools)
  # }else{
  #   install.packages("rstantools")
  #   library(rstantools)
  # }

  #############################################







  #
  #
  # tryCatch({
  #   library(car)
  # }, error = function(e) {
  #   install.packages("car")
  #   library(car)
  # })
  #
  #
  # if("car" %in% installed.packages()[,1]){
  #   library(car)
  # }else{
  #   install.packages("car")
  #   library(car)
  # }

  #############################################




  #
  #
  # tryCatch({
  #   library(hexbin)
  # }, error = function(e) {
  #   install.packages("hexbin")
  #   library(hexbin)
  # })
  #
  #
  # if("hexbin" %in% installed.packages()[,1]){
  #   library(hexbin)
  # }else{
  #   install.packages("hexbin")
  #   library(hexbin)
  # }

  #############################################




  #
  #
  # tryCatch({
  #   library(DiagrammeR)
  # }, error = function(e) {
  #   install.packages("DiagrammeR")
  #   library(DiagrammeR)
  # })
  #
  #
  # if("DiagrammeR" %in% installed.packages()[,1]){
  #   library(DiagrammeR)
  # }else{
  #   install.packages("DiagrammeR")
  #   library(DiagrammeR)
  # }

  #############################################





  #############################################




  #
  #
  # tryCatch({
  #   library( rmarkdown)
  # }, error = function(e) {
  #   install.packages("rmarkdown")
  #   library( rmarkdown)
  # })
  #
  #
  # if(" rmarkdown" %in% installed.packages()[,1]){
  #   library( rmarkdown)
  # }else{
  #   install.packages("rmarkdown")
  #   library( rmarkdown)
  # }

  #############################################




  #
  #
  # tryCatch({
  #   library( rmarkdown)
  # }, error = function(e) {
  #   install.packages("rmarkdown")
  #   library( rmarkdown)
  # })
  #
  #
  # if(" rmarkdown" %in% installed.packages()[,1]){
  #   library( rmarkdown)
  # }else{
  #   install.packages("rmarkdown")
  #   library( rmarkdown)
  # }

  #############################################



  # tryCatch({
  #   library( vctrs)
  # }, error = function(e) {
  #   install.packages("vctrs")
  #   library( vctrs)
  # })
  #
  #
  # if(" vctrs" %in% installed.packages()[,1]){
  #   library( vctrs)
  # }else{
  #   install.packages("vctrs")
  #   library( vctrs)
  # }

  #############################################











}#function -----------------------------------------------------

Try the BayesianFROC package in your browser

Any scripts or data that you put into this service are public.

BayesianFROC documentation built on Jan. 13, 2021, 5:22 a.m.