Configuration

Read configuration data

getConfig()

Get configuration for package, if any

Database

Handle database connections and queries

LoadRegData() loadRegData() describeRegistryDb()

Provider of data for registries at Rapporteket

rapOpenDbConnection()

Provide connection handle for data source at Rapporteket

rapCloseDbConnection()

Close down data connection handle

User information

Provides information on the logged in user in a shiny session

getUserName()

Get user name from config or session object

getUserGroups()

Get user groups from config or session object

getUserRole()

Get user role from config or session object

getUserReshId()

Get user resh ID from config or session object

getUserFullName()

Get user full name from config or session object

getUserPhone()

Get user phone (number) from config or session object

getUserEmail()

Get user email from config or session object

userInfo()

Provide user attributes based on environment context

getShinyUserName()

Get user name from a shiny session object

getShinyUserGroups()

Get user groups from a shiny session object

getShinyUserRole()

Get user role from a shiny session object

getShinyUserReshId()

Get user resh_id from a shiny session object

shinySessionInfo()

Provide elements from a shiny session object

Logging

Handle logging

appLogger() repLogger() autLogger()

Log user events in shiny applications at Rapporteket

makeLogRecord()

Make a log record

appendLog()

Append a log record

raplogManager()

Management of shiny application and report logging at Rapporteket

createArchive() logsOverSize() archiveLog() cleanArchive()

Archive functions for logs at Rapporteket

Automated reports

Handle automated reports

readAutoReportData()

Read automated report metadata

writeAutoReportData()

Write automated report metadata

upgradeAutoReportData()

Upgrade auto reports

runAutoReport()

Run reports as defined in yaml config and ship content by email

runBulletin()

Run bulletin auto reports

createAutoReport()

Create and add report to config

deleteAutoReport()

Delete existing report from config

selectByType()

Select data by type from config (list)

selectByOwner()

Select data on one owner from config (list)

selectByOrganization()

Select data on one organization from config (list)

selectByReg()

Select data on one registry from config (list)

makeAutoReportTab()

Make table of automated reports

makeUserSubscriptionTab()

Make table of subscriptions of reports

makeUserSubscriptionTab_v2() makeUserSubscriptionTabV2()

Make table of subscriptions of reports

makeRunDayOfYearSequence()

Make a sequence of day numbers from av given date and interval

isPkgRapReg()

Test if a package is part of Rapporteket

getRegs()

Provide vector of registries (i.e. their R packages) in config

findNextRunDate()

Find next run date for automated reports

filterAutoRep()

Filter auto report data

autoReportUI() autoReportOrgInput() autoReportOrgServer() autoReportFormatInput() autoReportFormatServer() autoReportInput() autoReportServer() autoReportApp() orgList2df()

Shiny modules and helper functions for registry auto reports

.testAutoReport()

Simple test of automated report

.getFun()

Provide explicit reference to function for do.call

Shiny

Helper functions to be used by shiny apps

runShinyApp()

runShinyApp starts a shiny application in a package

navbarWidgetInput() navbarWidgetServer() navbarWidgetApp()

Shiny modules providing GUI and server logic for user info widget

appNavbarUserWidget()

Create widget for registry apps at Rapporteket

exportGuideUI() exportGuideServer() exportGuideApp()

Shiny modules providing the Export Guide

statsGuideUI() statsGuideServer() statsGuideApp()

Shiny modules providing the Stats Guide

exportUCInput() exportUCServer() exportUCApp() selectListPubkey() exportDb()

Shiny modules providing GUI and server logic for Export

statsInput() statsUI() statsServer() statsApp() getRegistryLog() logFormat() logTimeFrame()

Shiny modules and helper functions for registry usage reports

Miscellaneous

Various tools

halloRapporteket()

Plain testing tool

fireInTheHole()

Kick off functions at Rapporteket

sendEmail()

Send email from Rapporteket

howWeDealWithPersonalData()

Render text in pop-up

MakeMessage() makeMessage()

Provide simple formatting of a sequential message

pushGist()

Push some markdown to gist

runNoweb()

runNoweb

getRapPackages()

Get all installed Rapporteket packages

installGithubPackage()

Install packages from GitHub at Rapporteket

isRapContext()

isRapContext tell if you are in or outside a Rapporteket context

noOptOutOk()

Provide a no-opt-out ok message

renderRmd()

Render documents from rmarkdown files at Rapporteket

mst()

Make standard table for rmarkdown reports

exportUCInput() exportUCServer() exportUCApp() selectListPubkey() exportDb()

Shiny modules providing GUI and server logic for Export

getGithub()

Collect various data from the GitHub API

Data

Data contained by the package

Helligdager2008til2022

Offisielle norske helligdager 2008 til 2022

appLog

App log test dataset.

Meta

About the package

rapbase

rapbase: Base Functions and Resources for Rapporteket