Skip to content

Commit a5bf45f

Browse files
Small fixes
1 parent 6f93664 commit a5bf45f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tmcrstudioaddin/DESCRIPTION

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Description: More about what it does (maybe more than one line)
88
Use four spaces when indenting paragraphs within the Description.
99
License: What license is it under?
1010
Encoding: UTF-8
11-
LazyData: true
1211
Imports:
1312
shiny (>= 0.13),
1413
miniUI (>= 0.1.1),

tmcrstudioaddin/NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ importFrom(shinyjs,enable)
4343
importFrom(shinyjs,hidden)
4444
importFrom(shinyjs,hide)
4545
importFrom(shinyjs,show)
46+
importFrom(utils, packageVersion)
4647
importFrom(utils,str)
4748
importFrom(utils,tar)
4849
importFrom(utils,untar)

tmcrstudioaddin/R/TMC_plugin.R

+6-6
Original file line numberDiff line numberDiff line change
@@ -66,28 +66,28 @@
6666
#' @details The TMC \code{RStudio} addin was made using
6767
#' \code{\link[shiny]{shiny-package}}, which allows making web
6868
#' applications and \code{RStudio} addins using \code{R}.
69-
no_tmcRtestrunner <- function() {
69+
.no_tmcRtestrunner <- function() {
7070
return(system.file(package = "tmcRtestrunner") == "")
7171
}
72-
tmcRtestrunner_version <- function() {
72+
.tmcRtestrunner_version <- function() {
7373
sum(unlist(packageVersion("tmcRtestrunner")) * c(100, 10, 1))
7474
}
75-
minimum_version <- "0.2.9"
75+
.minimum_version <- "0.2.9"
7676
tmcGadget <- function() {
7777
.starting_messages()
78-
if (no_tmcRtestrunner()) {
78+
if (.no_tmcRtestrunner()) {
7979
cat("-------------\n")
8080
cat(.in_red("ERROR: "))
8181
cat("No tmcRtestrunner package is installed.\n")
8282
cat("Please install tmcRtestrunner before trying again\n")
8383
return(FALSE)
8484
}
85-
if (tmcRtestrunner_version() < 29) {
85+
if (.tmcRtestrunner_version() < 29) {
8686
cat("-------------\n")
8787
cat(.in_red("ERROR: "))
8888
cat("The version tmcRtestrunner package is too old.\n")
8989
cat(paste0("Please install tmcRtestrunner with version >= ",
90-
minimum_version,
90+
.minimum_version,
9191
" before trying again\n"))
9292
return(FALSE)
9393
}

0 commit comments

Comments
 (0)