Skip to contents

This function creates an Excel file with each dataframe in a list as a separate sheet.

Usage

write_dataframes_to_excel(df_list, filename)

Arguments

df_list

A named list of dataframes to write to the Excel file.

filename

The name of the Excel file to create.

Value

No return value. The function prints a message indicating the completion of the Excel file writing.

Examples

# \donttest{
tox_dat <- extr_comptox("50-00-0")
#>  Checking Internet Connection...
#>  Internet connection OK...
#>  Sending request to CompTox...
#>  Request succeeded with status code: 202
#>  Getting info from CompTox...
#>  Request succeeded with status code: 200
temp_file <- tempfile(fileext = ".xlsx")
write_dataframes_to_excel(tox_dat, filename = temp_file)
#>  Excel file written in /var/folders/bp/fpwcfq1563l21rz5gdcsfcsw0000gn/T//Rtmpunbf6d/file509f63c0bbc8.xlsx...
# }