Skip to content

Commit

Permalink
fix to namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsla committed Apr 2, 2024
1 parent 6baa552 commit c7a78c5
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export(plot)
export(show)
export(summary)
exportClasses(crop)
exportClasses(endosim_col)
exportClasses(endosim_mod)
exportClasses(endosym)
exportClasses(endosym_col)
exportClasses(endosym_mod)
exportClasses(initial)
exportClasses(parasitoid)
exportClasses(pest)
Expand Down
8 changes: 4 additions & 4 deletions R/endosim_col.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#' An S4 class to store a collection of simulations with the Endosymbiont model
#' An S4 class to store a collection of simulations with the endosymbiont model
#'
#' @exportClass endosym_col
#' @exportClass endosim_col
#'
#' @slot scenarios Dataframe defining which modules are active or deactivated in each simulated scenario
#' @slot sims List of objects of class [endosym_mod-class], each corresponding to a row of \code{scenarios}
#' @slot sims List of objects of class [endosim_mod-class], each corresponding to a row of \code{scenarios}


methods::setClass("endosym_col",
methods::setClass("endosim_col",
slots = c(scenarios = "data.frame",
sims = "list")
)
4 changes: 2 additions & 2 deletions R/endosim_mod.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' An S4 class to store a simulation output
#'
#' @exportClass endosym_mod
#' @exportClass endosim_mod
#'
#' @slot pest name of the pest
#' @slot crop name of the crop
Expand All @@ -18,7 +18,7 @@
#' @slot para_df data.frame of parasitoid population through time
#' @slot area area of crop (m2)

methods::setClass("endosym_mod",
methods::setClass("endosim_mod",
slots = c(pest = "character",
crop = "character",
endosymbiont = "character",
Expand Down
2 changes: 1 addition & 1 deletion R/show-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @docType methods
#' @rdname show-methods

setGeneric("show", function(x) standardGeneric("show"))
setGeneric("show", function(object) standardGeneric("show"))

#' @docType methods
#' @aliases show,endosim_mod,ANY-method
Expand Down
10 changes: 5 additions & 5 deletions man/endosym_col-class.Rd → man/endosim_col-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/endosym_mod-class.Rd → man/endosim_mod-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/show-methods.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7a78c5

Please sign in to comment.