-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consolidate with utils #777
Conversation
mu-symbol back to ospsuite-env.R path separator back to ospsuite-env.R
@@ -12,9 +12,7 @@ ospsuiteEnv <- new.env(parent = emptyenv()) | |||
# name of the package. This will be used to retrieve information on the package at run time | |||
ospsuiteEnv$packageName <- "ospsuite" | |||
|
|||
ospsuiteEnv$suiteName <- "Open Systems Pharmacology" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to Utils as the name is global for the whole ecosystem?
@@ -23,10 +21,6 @@ ospsuiteEnv$containerTask <- NULL | |||
# Separator defined in OSPSuite.Core. | |||
ospsuiteEnv$pathSeparator <- "|" | |||
|
|||
# Default values for the formatNumerics() helper function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used any more
@@ -53,7 +53,7 @@ initPKSim <- function(pksimFolderPath = NULL) { | |||
stop("Only Windows platforms are supported") | |||
} | |||
|
|||
suite.name <- ospsuiteEnv$suiteName | |||
suite.name <- ospsuite.utils::getOSPSuiteUtilsSetting("suiteName") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, maybe move it back to this package..
#' If validations are successful, `NULL` is returned. Otherwise, error is | ||
#' signaled. | ||
#' @export | ||
validateHasUnit <- function(quantity, unit) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just moved it from the utilities.R
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were not exporting this function, but we do now. I think we should make an entry for this new export in NEWS.md
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I removed as export. We didn't export it so far, and unless there is a need for it, let's not export too much.
Mainly just using messages from utils |
@IndrajeetPatil OK how do I make it to use the latest utils version? |
Can I try something by directly pushing into this PR? P.S. I will also be updating the utilities package on CRAN today (see Open-Systems-Pharmacology/OSPSuite.RUtils#70), but CRAN usually takes a day or two to build the binaries that |
sure |
Unfortunately, downloading the GitHub package doesn't work because we seem to be running into this issue. But the updated version of the utility package is already on CRAN, and the binaries should be built in a day or two, and then the AppVeyor check can be run again. |
#' If validations are successful, `NULL` is returned. Otherwise, error is | ||
#' signaled. | ||
#' @export | ||
validateHasUnit <- function(quantity, unit) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were not exporting this function, but we do now. I think we should make an entry for this new export in NEWS.md
.
#' Names of the settings stored in ospsuiteEnv. Can be used with `getOSPSuiteSetting()` | ||
#' @include utilities.R | ||
#' @export | ||
ospsuiteSettingNames <- enum(names(ospsuiteEnv)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth logging this new export in NEWS.md
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would add it when we have the separation between user-defined "global" settings and "read-only".
Codecov Report
@@ Coverage Diff @@
## develop #777 +/- ##
===========================================
- Coverage 90.85% 90.83% -0.02%
===========================================
Files 78 76 -2
Lines 2121 2117 -4
===========================================
- Hits 1927 1923 -4
Misses 194 194
Continue to review full report at Codecov.
|
Fixes #774
Fixes #730
Fixes #714