Learn R Programming

generativeart (version 1.0)

generate_filename: Generate filenames

Description

This function creates file names dynamically. The file name depends on date, time and specific seed.

Usage

generate_filename(seed, filetype)

Arguments

seed

a numeric input generated with create_seeds()

filetype

set the file type for the image

Value

character vector, example: "2018-10-02-20-22_seed_22.png"

See Also

generate_seeds where the seed input is randomly generated

Examples

Run this code
# NOT RUN {
generate_filename(0104)
# }

Run the code above in your browser using DataLab