Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions R/extendr-wrappers.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ dummy_compile <- function(template_path) .Call(wrap__dummy_compile, template_pat
is_cargo_installed <- function() .Call(wrap__is_cargo_installed)

#' Fits the model at the given path to the data at the given path using the provided parameters.
#' NOTE: This is an internal function and should not be called directly.
#' See [PM_model()] `$fit()` method for arguments.
#' @param model_path Path to the compiled model file.
#' @param data Path to the data file.
#' @param params List of fitting parameters.
Expand Down
6 changes: 5 additions & 1 deletion man/fit.Rd

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

5 changes: 3 additions & 2 deletions src/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ fn simulate_all(
rows.into_dataframe().unwrap()
}


/// Fits the model at the given path to the data at the given path using the provided parameters.
/// #' NOTE: This is an internal function and should not be called directly.
/// #' See [PM_model()] `$fit()` method for arguments.
/// @param model_path Path to the compiled model file.
/// @param data Path to the data file.
/// @param params List of fitting parameters.
Expand Down Expand Up @@ -307,4 +308,4 @@ extendr_module! {
// To generate the exported function in R, run the following command:
// rextendr::document()
// Optional: reload Pmetrics
// devtools::load_all()
// devtools::load_all()
Loading