Skip to contents

Configuration

Read configuration data

getConfig()
Get configuration for package, if any

Database

Handle database connections and queries

loadRegData() describeRegistryDb()
Provider of data for registries at Rapporteket
rapOpenDbConnection()
Provide connection handle for data source at Rapporteket
rapCloseDbConnection()
Close down data connection handle

Staging data

Handle staging data

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

Logging

Handle logging

appLogger() repLogger() autLogger()
Log user events in shiny applications at Rapporteket
sanitizeLog()
Sanitize log entries that have reached end of life

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
makeAutoReportTab()
Make table of automated 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

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() 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
runNoweb()
runNoweb
getRapPackages()
Get all installed Rapporteket packages
isRapContext()
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
getGithub()
Collect various data from the GitHub API

Data

Data contained by the package

appLog
App log test dataset.

Meta

About the package

rapbase
rapbase: Base Functions and Resources for Rapporteket