Skip to content

Commit

Permalink
Prepare for 2.2 release - clean up package (#29)
Browse files Browse the repository at this point in the history
* Prepare for 2.2 release - clean up 

Following tips from `goodpractice::gp()` output
* ♻️Cleanup NAMESPACE
* ♻️ Reformat code
* 🎨 Reformat some lines to reduce length
  • Loading branch information
jsnel authored Dec 25, 2022
1 parent a01c6dc commit 0fa36e2
Show file tree
Hide file tree
Showing 8 changed files with 603 additions and 216 deletions.
2 changes: 1 addition & 1 deletion .lintr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
linters: linters_with_defaults(
line_length_linter(120),
line_length_linter(80),
# Nice to haves
commented_code_linter = NULL,
object_name_linter=NULL,
Expand Down
9 changes: 6 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ Authors@R: c(
)
Description: Allows specification and fitting of some parameter estimation
examples inspired by time-resolved spectroscopy via a Shiny GUI.
URL: https://github.com/glotaran/paramGUI/
License: GPL (>= 2)
Depends:
fields,
R (>= 3.0.0),
R (>= 3.0.0)
Imports:
shiny,
shinydashboard,
TIMP
TIMP,
fields
BugReports: https://github.com/glotaran/paramGUI/issues
Encoding: UTF-8
Language: en-US
LazyData: true
Expand Down
44 changes: 42 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export(runGUI)
export(simndecay_gen_paramGUI)
export(spectemp)
export(startGUI)
import(shiny)
import(shinydashboard)
importFrom(TIMP,calcEhiergaus)
importFrom(TIMP,compModel)
importFrom(TIMP,dat)
Expand All @@ -36,6 +34,48 @@ importFrom(graphics,matplot)
importFrom(graphics,mtext)
importFrom(graphics,par)
importFrom(graphics,plot)
importFrom(shiny,HTML)
importFrom(shiny,actionButton)
importFrom(shiny,checkboxInput)
importFrom(shiny,column)
importFrom(shiny,conditionalPanel)
importFrom(shiny,div)
importFrom(shiny,downloadButton)
importFrom(shiny,downloadHandler)
importFrom(shiny,fileInput)
importFrom(shiny,fluidPage)
importFrom(shiny,fluidRow)
importFrom(shiny,h4)
importFrom(shiny,h5)
importFrom(shiny,helpText)
importFrom(shiny,icon)
importFrom(shiny,isolate)
importFrom(shiny,numericInput)
importFrom(shiny,observe)
importFrom(shiny,observeEvent)
importFrom(shiny,plotOutput)
importFrom(shiny,reactiveValues)
importFrom(shiny,renderPlot)
importFrom(shiny,renderPrint)
importFrom(shiny,selectInput)
importFrom(shiny,setProgress)
importFrom(shiny,shinyApp)
importFrom(shiny,tabPanel)
importFrom(shiny,tabsetPanel)
importFrom(shiny,textInput)
importFrom(shiny,updateTabsetPanel)
importFrom(shiny,updateTextInput)
importFrom(shiny,verbatimTextOutput)
importFrom(shiny,withProgress)
importFrom(shinydashboard,dashboardBody)
importFrom(shinydashboard,dashboardHeader)
importFrom(shinydashboard,dashboardPage)
importFrom(shinydashboard,dashboardSidebar)
importFrom(shinydashboard,dropdownMenu)
importFrom(shinydashboard,messageItem)
importFrom(shinydashboard,notificationItem)
importFrom(shinydashboard,renderMenu)
importFrom(shinydashboard,tabBox)
importFrom(stats,dnorm)
importFrom(stats,nls)
importFrom(stats,nls.control)
Expand Down
11 changes: 10 additions & 1 deletion R/paramGUI-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
#' @description Allows specification and fitting of some parameter estimation
#' examples inspired by time-resolved spectroscopy via a Shiny GUI.
#' @docType package
#' @import shiny shinydashboard
#' @importFrom TIMP initModel fitModel
#' @importFrom shiny actionButton checkboxInput column conditionalPanel div
#' @importFrom shiny downloadButton downloadHandler fileInput fluidRow fluidPage
#' @importFrom shiny h4 h5 helpText HTML icon isolate numericInput
#' @importFrom shiny observe observeEvent plotOutput reactiveValues
#' @importFrom shiny renderPlot renderPrint selectInput setProgress withProgress
#' @importFrom shiny shinyApp tabPanel tabsetPanel textInput
#' @importFrom shiny updateTabsetPanel updateTextInput verbatimTextOutput
#' @importFrom shinydashboard dashboardBody dashboardHeader dashboardPage
#' @importFrom shinydashboard dashboardSidebar dropdownMenu messageItem
#' @importFrom shinydashboard notificationItem renderMenu tabBox
NULL
Loading

0 comments on commit 0fa36e2

Please sign in to comment.