The code example is batch_pubmed_download(pubmed_query_string = query, format = "medline", batch_size = 100, dest_file_prefix = file_name, encoding = "UTF8")