I use Notepad++ for my R coding. However, when I write SQL queries for R:
tt <- "SELECT
*
FROM
myTable"
Notepadd++ reads the tab indentations and line returns into R. So I get something like this:
tt> "SELECT \n\t\t* \n\t\tFROM \n\t\tmyTable"
I see similar stuff when I put line breaks in my longer functions, etc.
This runs fine, of course, but it's really difficult to read in the console and other people want to look at it. Is there any way to format something so that it's readable in Notepad++ and then somehow remove the returns and tabs when I input it into the R console?