We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assignment R Markdown files created with assignr have one additional newline for each (solution) chunk removed.
assignr
The text was updated successfully, but these errors were encountered:
I'm currently running the following on the -assign.Rmd files as a part of my build process for a course:
-assign.Rmd
remove_extra_newlines = function(file) { input = readLines(file) output = which(input == "") output = input[-(output[which((output + 1)[-length(output)] == output[-1])])] output = output[-length(output)] writeLines(text = output, con = file) }
Sorry, something went wrong.
No branches or pull requests
Assignment R Markdown files created with
assignr
have one additional newline for each (solution) chunk removed.The text was updated successfully, but these errors were encountered: