inst/shinyApp/global.R

library(findInFiles)
library(shiny)
library(shinyAce)
library(shinyWidgets)
library(shinyjqui)
library(shinyFiles)
library(shinyvalidate)
library(fs)
library(htmltools)

roots <- c(wd = getOption("FIFWD"), getVolumes()())

smallInput <- function(Input) {
  tagQ <- tagQuery(Input)
  tagQ$find("input")$addClass("input-sm form-control-sm")$allTags()
}

isPositiveIntegerOrNA <- function(x) {
  if(is.na(x) || (x >= 0 && x %% 1 == 0)){
    NULL
  } else {
    "Must be an integer or empty."
  }
}

Try the findInFiles package in your browser

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

findInFiles documentation built on May 29, 2024, 9:31 a.m.