Running examples in ‘suddengains-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: write_byperson
> ### Title: Write a sudden gains data frame (byperson) to CSV, SPSS, STATA
> ###   or Excel files
> ### Aliases: write_byperson
> 
> ### ** Examples
> 
> # Adjust "path" argument before running
> # Create character string name for temporary "byperson.csv" file
> temp <- tempfile(pattern = "byperson", fileext = ".csv")
> 
> # Write byperson dataset (CSV file)
> # To write a different format change the 'format' argument ...
> # ... as well as the file extension in the 'path' argument
> write_byperson(data = sgdata,
+                sg_crit1_cutoff = 7,
+                id_var_name = "id",
+                tx_start_var_name = "bdi_s1",
+                tx_end_var_name = "bdi_s12",
+                sg_var_list = c("bdi_s1", "bdi_s2", "bdi_s3", "bdi_s4",
+                                "bdi_s5", "bdi_s6", "bdi_s7", "bdi_s8",
+                                "bdi_s9", "bdi_s10", "bdi_s11", "bdi_s12"),
+                sg_measure_name = "bdi",
+                identify_sg_1to2 = FALSE,
+                multiple_sg_select = "largest",
+                format = "CSV",
+                path = temp)
First, second, and third sudden gains criteria were applied.
The critical value for the third criterion was adjusted for missingness.
The first gain/loss was selected in case of multiple gains/losses.
Error in readr::write_csv(x = byperson_data, path = path, ...) : 
  unused argument (path = path)
Calls: write_byperson
Execution halted
Running examples in ‘suddengains-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: write_byperson
> ### Title: Write a sudden gains data frame (byperson) to CSV, SPSS, STATA
> ###   or Excel files
> ### Aliases: write_byperson
> 
> ### ** Examples
> 
> # Adjust "path" argument before running
> # Create character string name for temporary "byperson.csv" file
> temp <- tempfile(pattern = "byperson", fileext = ".csv")
> 
> # Write byperson dataset (CSV file)
> # To write a different format change the 'format' argument ...
> # ... as well as the file extension in the 'path' argument
> write_byperson(data = sgdata,
+                sg_crit1_cutoff = 7,
+                id_var_name = "id",
+                tx_start_var_name = "bdi_s1",
+                tx_end_var_name = "bdi_s12",
+                sg_var_list = c("bdi_s1", "bdi_s2", "bdi_s3", "bdi_s4",
+                                "bdi_s5", "bdi_s6", "bdi_s7", "bdi_s8",
+                                "bdi_s9", "bdi_s10", "bdi_s11", "bdi_s12"),
+                sg_measure_name = "bdi",
+                identify_sg_1to2 = FALSE,
+                multiple_sg_select = "largest",
+                format = "CSV",
+                path = temp)
First, second, and third sudden gains criteria were applied.
The critical value for the third criterion was adjusted for missingness.
The first gain/loss was selected in case of multiple gains/losses.
Error in readr::write_csv(x = byperson_data, path = path, ...) : 
  unused argument (path = path)
Calls: write_byperson
Execution halted
Namespace in Imports field not imported from: ‘cli’
  All declared Imports should be used.
Running examples in ‘suddengains-Ex.R’ failed
The error most likely occurred in:

> ### Name: write_byperson
> ### Title: Write a sudden gains data frame (byperson) to CSV, SPSS, STATA
> ###   or Excel files
> ### Aliases: write_byperson
> 
> ### ** Examples
> 
> # Adjust "path" argument before running
> # Create character string name for temporary "byperson.csv" file
> temp <- tempfile(pattern = "byperson", fileext = ".csv")
> 
> # Write byperson dataset (CSV file)
> # To write a different format change the 'format' argument ...
> # ... as well as the file extension in the 'path' argument
> write_byperson(data = sgdata,
+                sg_crit1_cutoff = 7,
+                id_var_name = "id",
+                tx_start_var_name = "bdi_s1",
+                tx_end_var_name = "bdi_s12",
+                sg_var_list = c("bdi_s1", "bdi_s2", "bdi_s3", "bdi_s4",
+                                "bdi_s5", "bdi_s6", "bdi_s7", "bdi_s8",
+                                "bdi_s9", "bdi_s10", "bdi_s11", "bdi_s12"),
+                sg_measure_name = "bdi",
+                identify_sg_1to2 = FALSE,
+                multiple_sg_select = "largest",
+                format = "CSV",
+                path = temp)
First, second, and third sudden gains criteria were applied.
The critical value for the third criterion was adjusted for missingness.
The first gain/loss was selected in case of multiple gains/losses.
Error in readr::write_csv(x = byperson_data, path = path, ...) : 
  unused argument (path = path)
Calls: write_byperson
Execution halted
Namespace in Imports field not imported from: ‘cli’
  All declared Imports should be used.
Running examples in ‘suddengains-Ex.R’ failed
The error most likely occurred in:

> ### Name: write_byperson
> ### Title: Write a sudden gains data frame (byperson) to CSV, SPSS, STATA
> ###   or Excel files
> ### Aliases: write_byperson
> 
> ### ** Examples
> 
> # Adjust "path" argument before running
> # Create character string name for temporary "byperson.csv" file
> temp <- tempfile(pattern = "byperson", fileext = ".csv")
> 
> # Write byperson dataset (CSV file)
> # To write a different format change the 'format' argument ...
> # ... as well as the file extension in the 'path' argument
> write_byperson(data = sgdata,
+                sg_crit1_cutoff = 7,
+                id_var_name = "id",
+                tx_start_var_name = "bdi_s1",
+                tx_end_var_name = "bdi_s12",
+                sg_var_list = c("bdi_s1", "bdi_s2", "bdi_s3", "bdi_s4",
+                                "bdi_s5", "bdi_s6", "bdi_s7", "bdi_s8",
+                                "bdi_s9", "bdi_s10", "bdi_s11", "bdi_s12"),
+                sg_measure_name = "bdi",
+                identify_sg_1to2 = FALSE,
+                multiple_sg_select = "largest",
+                format = "CSV",
+                path = temp)
First, second, and third sudden gains criteria were applied.
The critical value for the third criterion was adjusted for missingness.
The first gain/loss was selected in case of multiple gains/losses.
Error in readr::write_csv(x = byperson_data, path = path, ...) : 
  unused argument (path = path)
Calls: write_byperson
Execution halted
Running examples in 'suddengains-Ex.R' failed
The error most likely occurred in:

> ### Name: write_byperson
> ### Title: Write a sudden gains data frame (byperson) to CSV, SPSS, STATA
> ###   or Excel files
> ### Aliases: write_byperson
> 
> ### ** Examples
> 
> # Adjust "path" argument before running
> # Create character string name for temporary "byperson.csv" file
> temp <- tempfile(pattern = "byperson", fileext = ".csv")
> 
> # Write byperson dataset (CSV file)
> # To write a different format change the 'format' argument ...
> # ... as well as the file extension in the 'path' argument
> write_byperson(data = sgdata,
+                sg_crit1_cutoff = 7,
+                id_var_name = "id",
+                tx_start_var_name = "bdi_s1",
+                tx_end_var_name = "bdi_s12",
+                sg_var_list = c("bdi_s1", "bdi_s2", "bdi_s3", "bdi_s4",
+                                "bdi_s5", "bdi_s6", "bdi_s7", "bdi_s8",
+                                "bdi_s9", "bdi_s10", "bdi_s11", "bdi_s12"),
+                sg_measure_name = "bdi",
+                identify_sg_1to2 = FALSE,
+                multiple_sg_select = "largest",
+                format = "CSV",
+                path = temp)
First, second, and third sudden gains criteria were applied.
The critical value for the third criterion was adjusted for missingness.
The first gain/loss was selected in case of multiple gains/losses.
Error in readr::write_csv(x = byperson_data, path = path, ...) : 
  unused argument (path = path)
Calls: write_byperson
Execution halted
Running examples in ‘suddengains-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: write_byperson
> ### Title: Write a sudden gains data frame (byperson) to CSV, SPSS, STATA
> ###   or Excel files
> ### Aliases: write_byperson
> 
> ### ** Examples
> 
> # Adjust "path" argument before running
> # Create character string name for temporary "byperson.csv" file
> temp <- tempfile(pattern = "byperson", fileext = ".csv")
> 
> # Write byperson dataset (CSV file)
> # To write a different format change the 'format' argument ...
> # ... as well as the file extension in the 'path' argument
> write_byperson(data = sgdata,
+                sg_crit1_cutoff = 7,
+                id_var_name = "id",
+                tx_start_var_name = "bdi_s1",
+                tx_end_var_name = "bdi_s12",
+                sg_var_list = c("bdi_s1", "bdi_s2", "bdi_s3", "bdi_s4",
+                                "bdi_s5", "bdi_s6", "bdi_s7", "bdi_s8",
+                                "bdi_s9", "bdi_s10", "bdi_s11", "bdi_s12"),
+                sg_measure_name = "bdi",
+                identify_sg_1to2 = FALSE,
+                multiple_sg_select = "largest",
+                format = "CSV",
+                path = temp)
First, second, and third sudden gains criteria were applied.
The critical value for the third criterion was adjusted for missingness.
The first gain/loss was selected in case of multiple gains/losses.
Error in readr::write_csv(x = byperson_data, path = path, ...) : 
  unused argument (path = path)
Calls: write_byperson
Execution halted
Running examples in ‘suddengains-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: write_byperson
> ### Title: Write a sudden gains data frame (byperson) to CSV, SPSS, STATA
> ###   or Excel files
> ### Aliases: write_byperson
> 
> ### ** Examples
> 
> # Adjust "path" argument before running
> # Create character string name for temporary "byperson.csv" file
> temp <- tempfile(pattern = "byperson", fileext = ".csv")
> 
> # Write byperson dataset (CSV file)
> # To write a different format change the 'format' argument ...
> # ... as well as the file extension in the 'path' argument
> write_byperson(data = sgdata,
+                sg_crit1_cutoff = 7,
+                id_var_name = "id",
+                tx_start_var_name = "bdi_s1",
+                tx_end_var_name = "bdi_s12",
+                sg_var_list = c("bdi_s1", "bdi_s2", "bdi_s3", "bdi_s4",
+                                "bdi_s5", "bdi_s6", "bdi_s7", "bdi_s8",
+                                "bdi_s9", "bdi_s10", "bdi_s11", "bdi_s12"),
+                sg_measure_name = "bdi",
+                identify_sg_1to2 = FALSE,
+                multiple_sg_select = "largest",
+                format = "CSV",
+                path = temp)
First, second, and third sudden gains criteria were applied.
The critical value for the third criterion was adjusted for missingness.
The first gain/loss was selected in case of multiple gains/losses.
Error in readr::write_csv(x = byperson_data, path = path, ...) : 
  unused argument (path = path)
Calls: write_byperson
Execution halted
Running examples in 'suddengains-Ex.R' failed
The error most likely occurred in:

> ### Name: write_byperson
> ### Title: Write a sudden gains data frame (byperson) to CSV, SPSS, STATA
> ###   or Excel files
> ### Aliases: write_byperson
> 
> ### ** Examples
> 
> # Adjust "path" argument before running
> # Create character string name for temporary "byperson.csv" file
> temp <- tempfile(pattern = "byperson", fileext = ".csv")
> 
> # Write byperson dataset (CSV file)
> # To write a different format change the 'format' argument ...
> # ... as well as the file extension in the 'path' argument
> write_byperson(data = sgdata,
+                sg_crit1_cutoff = 7,
+                id_var_name = "id",
+                tx_start_var_name = "bdi_s1",
+                tx_end_var_name = "bdi_s12",
+                sg_var_list = c("bdi_s1", "bdi_s2", "bdi_s3", "bdi_s4",
+                                "bdi_s5", "bdi_s6", "bdi_s7", "bdi_s8",
+                                "bdi_s9", "bdi_s10", "bdi_s11", "bdi_s12"),
+                sg_measure_name = "bdi",
+                identify_sg_1to2 = FALSE,
+                multiple_sg_select = "largest",
+                format = "CSV",
+                path = temp)
First, second, and third sudden gains criteria were applied.
The critical value for the third criterion was adjusted for missingness.
The first gain/loss was selected in case of multiple gains/losses.
Error in readr::write_csv(x = byperson_data, path = path, ...) : 
  unused argument (path = path)
Calls: write_byperson
Execution halted
Running examples in 'suddengains-Ex.R' failed
The error most likely occurred in:

> ### Name: write_byperson
> ### Title: Write a sudden gains data frame (byperson) to CSV, SPSS, STATA
> ###   or Excel files
> ### Aliases: write_byperson
> 
> ### ** Examples
> 
> # Adjust "path" argument before running
> # Create character string name for temporary "byperson.csv" file
> temp <- tempfile(pattern = "byperson", fileext = ".csv")
> 
> # Write byperson dataset (CSV file)
> # To write a different format change the 'format' argument ...
> # ... as well as the file extension in the 'path' argument
> write_byperson(data = sgdata,
+                sg_crit1_cutoff = 7,
+                id_var_name = "id",
+                tx_start_var_name = "bdi_s1",
+                tx_end_var_name = "bdi_s12",
+                sg_var_list = c("bdi_s1", "bdi_s2", "bdi_s3", "bdi_s4",
+                                "bdi_s5", "bdi_s6", "bdi_s7", "bdi_s8",
+                                "bdi_s9", "bdi_s10", "bdi_s11", "bdi_s12"),
+                sg_measure_name = "bdi",
+                identify_sg_1to2 = FALSE,
+                multiple_sg_select = "largest",
+                format = "CSV",
+                path = temp)
First, second, and third sudden gains criteria were applied.
The critical value for the third criterion was adjusted for missingness.
The first gain/loss was selected in case of multiple gains/losses.
Error in readr::write_csv(x = byperson_data, path = path, ...) : 
  unused argument (path = path)
Calls: write_byperson
Execution halted