#Rscript that creates 100 dummy files to students to copy file_prefix = "text_file_" file_suffix = ".txt" file_num = seq(1,100,1) my_files = paste0(file_prefix,file_num,file_suffix) #Loop through each desginated file, create a random array #then save that the array to the text file we are working #on. for(f in 1:length(my_files)){ print(paste('Creating text file: ',my_files[f])) #Create random array output = rnorm(100, mean=50, sd=10) #Save output to a text file write(output,my_files[f]) } #End of file loop print('Done...!') #End script