Function listing the names of existing documents and making a new name by adding one to the highest existing increment. This ensures that no old number is assigned again.

make_new_name(firstletter, course_paths)

Arguments

firstletter

Character. "N" for notes, "P" for pages, "S" for slides, "V" for video scripts, "G" for games, "C" for cases, "Q" for questions.

course_paths

Reactive. Function containing a list of paths to the different folders and databases on local disk.

Value

Character. Name of a new document to be created.

Author

Nicolas Mangin