Skip to content

Commit

Permalink
fix for CRAN errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianHordyk committed Sep 24, 2024
1 parent 4eb806e commit dc25a48
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ netlify.toml
^man-roxygen
^test_objects
DEVELOPMENT.R
^CRAN-SUBMISSION$
1 change: 1 addition & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'devel'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Description: The 'openMSE' package is designed for building operating models,
'openMSE', users have access to the full functionality contained within
these packages. Learn more about 'openMSE' at <https://openmse.com/>.
License: GPL-3
URL: https://openmse.com/, https://github.com/Blue-Matter/openMSE, https://blue-matter.github.io/openMSE/
URL: https://openmse.com/, https://github.com/Blue-Matter/openMSE, https://openMSE.openMSE.com
BugReports: https://github.com/Blue-Matter/openMSE/issues
Encoding: UTF-8
LazyData: true
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ S3method(get_ts,MMSE)
S3method(get_ts,MSE)
S3method(get_ts,list)
S3method(get_ts,multiHist)
S3method(hist,recruits)
export(cm2inch)
export(demo)
export(divide_10)
Expand Down
8 changes: 3 additions & 5 deletions R/get_data_frames.R
Original file line number Diff line number Diff line change
Expand Up @@ -846,13 +846,12 @@ get_F <- function(x, model='Model 1', ...) {
get_ts(x, variable='Apical Fishing Mortality', model=model, ...)
}

#' @export
hist.recruits <- function(x) {
hist_recruits <- function(x) {
as.vector(apply(x@AtAge$Number[,1,,], 1:2, sum))
}


mse.recruits <- function(x) {
mse_recruits <- function(x) {
dd <- dim(x@N)
if (length(dd)==3) {
if (length(x@Misc$extended)<1)
Expand All @@ -864,8 +863,7 @@ mse.recruits <- function(x) {

}

mmse.recruits <- function(x) {

mmse_recruits <- function(x) {
apply(x@N[,,1,,,, drop=FALSE], c(1,2,4,5), sum)
}

Expand Down
6 changes: 6 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Note to CRAN Maintainers

Re-submission:
* replaced the old URL in DESCRIPTION
* fixed mismatch for methods registered for non-generic


## Test environments
* local - Windows 4.4.1
Expand Down
6 changes: 3 additions & 3 deletions data-raw/TS_Variables.csv
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Landings,MMSE,Catch
Removals,Hist,Removals
Removals,MSE,Removals
Removals,MMSE,Removals
Recruits,Hist,hist.recruits()
Recruits,MSE,mse.recruits()
Recruits,MMSE,mmse.recruits()
Recruits,Hist,hist_recruits()
Recruits,MSE,mse_recruits()
Recruits,MMSE,mmse_recruits()
Spawning Biomass,MMSE,SSB
Biomass,MMSE,B
Apical Fishing Mortality,Hist,Find
Expand Down

0 comments on commit dc25a48

Please sign in to comment.