run_nca_components: Runs NCA for the Current Analysis

View source: R/NCA_Server.R

run_nca_componentsR Documentation

Runs NCA for the Current Analysis

Description

Takes the current state and runs the current analysis in that state.

Usage

run_nca_components(
  state,
  components = c("nca", "fg_ind_obs", "tb_ind_obs", "tb_ind_params")
)

Arguments

state

NCA state from NCA_fetch_state()

components

List of components to run. By default it will run all of the following. If you just need to regenerate a figure based on the current nca results you can just specify that component. These are the valid components:

  • nca: Run NCA analysis

  • fg_ind_obs: Build the figure(s) with the indiviudal observations.

  • tb_ind_obs: Build the table(s) with the indiviudal observations.

  • tb_ind_params: Build the table(s) with the indiviudal parameters.

Value

List with the following components:

  • isgood: Return status of the function.

  • msgs: Error messages if any issues were encountered.

  • nca_res: PKNCA results if run was successful.

Examples

# We need a state object to use below
sess_res = NCA_test_mksession(session=list(), full_session=FALSE)
state = sess_res$state

state = run_nca_components(state, components="tb_ind_params")

ruminate documentation built on May 29, 2024, 11:09 a.m.