- R SDK /
- Functions /
Create a new experiment
Create a new experiment on Comet's servers. The return value is an
Experiment object that can be used to modify or get information about the experiment. Only one experiment can be active at a time, so make sure to stop an experiment before creating a new one (by calling the
stop() method on the
experiment_name = NULL,
project_name = NULL,
workspace_name = NULL,
api_key = NULL,
keep_active = TRUE,
log_output = TRUE,
log_error = FALSE,
log_code = TRUE,
log_system_details = TRUE,
log_git_info = FALSE
|Project name (can also be specified using the |
COMET_PROJECT_NAME parameter as an environment variable or in a comet config file).
|Workspace name (can also be specified using the |
COMET_WORKSPACE parameter as an environment variable or in a comet config file).
|Comet API key (can also be specified using the |
COMET_API_KEY parameter as an environment variable or in a comet config file).
TRUE , automatically send Comet a status update every few seconds until the experiment is stopped to mark the experiment as active on the Comet web dashboard.
TRUE , all standard output will automatically be sent to the Comet servers to display as message logs for the experiment. The output will still be shown in the console as well.
TRUE , all output from 'stderr' (which includes errors, warnings, and messages) will be redirected to the Comet servers to display as message logs for the experiment. Note that unlike
auto_log_output , if this option is on then these messages will not be shown in the console and instead they will only be logged to the Comet experiment. This option is set to
FALSE by default because of this behaviour.
TRUE , log the source code of the R script that was called to Comet as the associated code of this experiment. This only works if the you run a script using the
Rscript tool and will not work in interactive sessions.
TRUE , automatically log the system details to Comet when the experiment is created.
TRUE , log information about the active git repository. Requires the
git2r package to be installed.
## Not run:
# Assuming you have COMET_API_KEY, COMET_WORKSPACE, COMET_PROJECT_NAME variables defined
exp <- create_experiment()
## End(Not run)