Skip to content

Commit

Permalink
Merge pull request #115 from slwu89/bug/cran_note
Browse files Browse the repository at this point in the history
get rid of CRAN check NOTEs
  • Loading branch information
giovannic authored Jul 9, 2021
2 parents 6ae4055 + d3c59a0 commit de9d1ec
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ docs
codecov.yml
tests/performance
joss
.vscode
4 changes: 2 additions & 2 deletions R/bitset.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#' WARNING: all operations (except \code{$not}) are in-place so please use \code{$copy}
#' if you would like to perform an operation without destroying your current bitset.
#' @importFrom R6 R6Class
#' @export Bitset
Bitset <- R6::R6Class(
#' @export
Bitset <- R6Class(
'Bitset',
public = list(
#' @field .bitset a pointer to the underlying IterableBitset
Expand Down
2 changes: 1 addition & 1 deletion R/categorical_variable.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' if possible becuase certain operations will be faster.
#' @importFrom R6 R6Class
#' @export
CategoricalVariable <- R6::R6Class(
CategoricalVariable <- R6Class(
'CategoricalVariable',
public = list(

Expand Down
2 changes: 1 addition & 1 deletion R/double_variable.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' @description Represents a continuous variable for an individual.
#' @importFrom R6 R6Class
#' @export
DoubleVariable <- R6::R6Class(
DoubleVariable <- R6Class(
'DoubleVariable',
public = list(
.variable = NULL,
Expand Down
2 changes: 1 addition & 1 deletion R/event.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' @description Describes a general event in the simulation
#' @importFrom R6 R6Class
#' @export
Event <- R6::R6Class(
Event <- R6Class(
'Event',
public = list(

Expand Down
2 changes: 1 addition & 1 deletion R/integer_variable.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' household or age bin.
#' @importFrom R6 R6Class
#' @export
IntegerVariable <- R6::R6Class(
IntegerVariable <- R6Class(
'IntegerVariable',
public = list(

Expand Down
2 changes: 1 addition & 1 deletion R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' @description Class to render output for the simulation
#' @importFrom R6 R6Class
#' @export
Render <- R6::R6Class(
Render <- R6Class(
'Render',
private = list(
.vectors = list(),
Expand Down
3 changes: 2 additions & 1 deletion R/targeted_event.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#' @title TargetedEvent Class
#' @description Describes a targeted event in the simulation
#' This is useful for events which are triggered for a sub-population.
#' @importFrom R6 R6Class
#' @export
TargetedEvent <- R6::R6Class(
TargetedEvent <- R6Class(
'TargetedEvent',
inherit = Event,
public = list(
Expand Down
1 change: 1 addition & 0 deletions inst/include/Variable.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

struct Variable {
virtual void update() = 0;
virtual ~Variable() {};
};

#endif /* INST_INCLUDE_VARIABLE_H_ */
2 changes: 1 addition & 1 deletion src/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void process_listener(
) {
size_t t = event->t;
(*listener)(t);
};
}

// [[Rcpp::export]]
void process_targeted_listener(
Expand Down
6 changes: 3 additions & 3 deletions src/prefab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Rcpp::XPtr<process_t> fixed_probability_multinomial_process_internal(
}),
true
);
};
}


// [[Rcpp::export]]
Expand Down Expand Up @@ -105,7 +105,7 @@ Rcpp::XPtr<process_t> multi_probability_multinomial_process_internal(
}),
true
);
};
}

// [[Rcpp::export]]
Rcpp::XPtr<process_t> multi_probability_bernoulli_process_internal(
Expand All @@ -129,7 +129,7 @@ Rcpp::XPtr<process_t> multi_probability_bernoulli_process_internal(
}),
true
);
};
}

// [[Rcpp::export]]
Rcpp::XPtr<process_t> infection_age_process_internal(
Expand Down

0 comments on commit de9d1ec

Please sign in to comment.