Skip to content

Commit

Permalink
Final check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Jun 20, 2024
1 parent 97e074a commit db82d03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/agents-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
#' x[0] # Print information about the first agent. Substitute the agent of
#' # interest's position where '0' is.
#' @name agents
get_agents <- function(x, ...) UseMethod("get_agents")
get_agents <- function(model, ...) UseMethod("get_agents")

Check warning on line 41 in R/agents-methods.R

View check run for this annotation

Codecov / codecov/patch

R/agents-methods.R#L41

Added line #L41 was not covered by tests

#' @export
#' @rdname agents
get_agents.epiworld_model <- function(model) {
get_agents.epiworld_model <- function(model, ...) {

res <- get_agents_cpp(model)

Expand Down
6 changes: 3 additions & 3 deletions R/entity.R
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ distribute_entity_randomly <- function(
distribute_entity_to_set <- function(
agents_ids
) {

structure(
distribute_entity_a_set_cpp(
distribute_entity_to_set_cpp(
as.integer(agents_ids)

Check warning on line 276 in R/entity.R

View check run for this annotation

Codecov / codecov/patch

R/entity.R#L274-L276

Added lines #L274 - L276 were not covered by tests
),
class = "epiworld_distribution_entity"

Check warning on line 278 in R/entity.R

View check run for this annotation

Codecov / codecov/patch

R/entity.R#L278

Added line #L278 was not covered by tests
Expand All @@ -290,7 +290,7 @@ set_distribution_entity <- function(

stopifnot_entity(entity)
stopifnot_entity_distfun(distfun)
set_distribution_entity_cpp(entity, distribution)
set_distribution_entity_cpp(entity, distfun)

Check warning on line 293 in R/entity.R

View check run for this annotation

Codecov / codecov/patch

R/entity.R#L291-L293

Added lines #L291 - L293 were not covered by tests

invisible(entity)

Check warning on line 295 in R/entity.R

View check run for this annotation

Codecov / codecov/patch

R/entity.R#L295

Added line #L295 was not covered by tests

Expand Down
2 changes: 1 addition & 1 deletion R/virus.R
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ distribute_virus_randomly <- function(
distribute_virus_set <- function(agents_ids) {

structure(
distribute_virus_set_cpp(as.vector(agents_id)),
distribute_virus_to_set_cpp(as.vector(agents_ids)),
class = "epiworld_virus_distfun"

Check warning on line 570 in R/virus.R

View check run for this annotation

Codecov / codecov/patch

R/virus.R#L568-L570

Added lines #L568 - L570 were not covered by tests
)

Expand Down

0 comments on commit db82d03

Please sign in to comment.