Skip to contents

Table should have at least two columns - messages and fuctions calls. Each function call should be a string of the following format "'function.name', arg1 = val1, arg2 = val2" (same as arguments for do.call function).

Usage

standardize_make_procedures_list(
  procedures_table,
  message_field = "message",
  function_call_field = "function.call",
  no_field = "no",
  remove_comments = TRUE,
  sort_by_no_field = TRUE,
  comments = c("#", "-", "")
)

Arguments

procedures_table

Table to use

message_field

name of the column with messages that will be displayed when each call is executed

function_call_field

name of the column where function (standardization procedures) calls are listed.

no_field

name of the column where the number of procedure is specified. Also this field indicates if the row in the table is just a comment in which case it will be removed if remove_comments is set (which is set by default)

remove_comments

Whether to remove comments.

sort_by_no_field

Whether to sort the list by col named no_field

comments

Values (character string) in the first col that makes entire row as commented out

Value

List of named function calls. Names are messages.