So here's the problem There's a requirement to input newline (to process URL),
Basically it's like this in Python:
canonical_request = method + '\n' + canonical_uri + '\n' + canonical_querystring
I have tried using paste
but whenever I use "\n" this character is included in the string.
I know a lot of people recommended cat
but cat is for printing purposes, therefore you can make it into a variable such as
canonical_request <- cat(method, "\n", canonical_uri, "\n", canonical_querystring)
if you call canonical_request this way, it will give NULL
Do you know how to insert newline (by concatenating characters) in R?
ps. it's different from question here: R - new line in paste() function (OP doesn't state clearly the purposes of new line usage, I'm assuming it's for printing purposes)