R/biblioshiny.R

Defines functions biblioshiny

Documented in biblioshiny

#' Shiny UI for bibliometrix package
#'
#' \code{biblioshiny} performs science mapping analysis using the main functions of the bibliometrix package.
#'
#' @param port is the TCP port that the application should listen on. If the port is not specified,
#' and the shiny.port option is set (with options(shiny.port = XX)), then that port will be used.
#' Otherwise, use the default port 3838.
#'
#' @param launch.browser If true, the system's default web browser will be launched automatically
#' after the app is started. Defaults to true in interactive sessions only. This value of
#' this parameter can also be a function to call with the application's URL.
#'
#' @param host The IPv4 address that the application should listen on.
#' Defaults to the shiny.host option, if set, or "127.0.0.1" if not.
#'
#' @param maxUploadSize is a integer. The max upload file size argument. Default value is 200 (megabyte)
#'
#' @param max.rows is an integer or Inf. The maximum number of records (publications) allowed
#' when importing or loading a file. Files exceeding this limit will be rejected with an
#' informative message. Default value is \code{Inf} (no limit).
#'
#' @examples
#'
#' # biblioshiny()
#'
#' @export

biblioshiny <- function(
  host = "127.0.0.1",
  port = 3838,
  launch.browser = TRUE,
  maxUploadSize = 500,
  max.rows = Inf
) {
  shinyOptions(maxUploadSize = maxUploadSize)
  shinyOptions(biblioshiny.max.rows = max.rows)

  runApp(
    system.file("biblioshiny", package = "bibliometrix"),
    launch.browser = launch.browser,
    port = port,
    host = getOption("shiny.host", host)
  )
}

Try the bibliometrix package in your browser

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

bibliometrix documentation built on April 9, 2026, 9:06 a.m.