I recently updated R and blastSequences. Now when running the script on multiple concatenated sequences, I get the error "Illegal characters found in URL". I've traced the error back to this line of the function: post <- htmlParse(getURL(url0, followlocation = TRUE)), which seems to have been modified with the inclusion of the getURL call to handle https. It looks as though the getURL function doesn't handle the \n character in the same way. Thoughts on how to fix this?
A quick way to reproduce the error:
> blastSequences(x = ">ID-1\nACATGCTA\n>ID-2\nAAACCACTT",as="data.frame")
Error in function (type, msg, asError = TRUE) :
Illegal characters found in URL
For reference, I'm using R v 3.3.2, 64 bit on Ubuntu 16.04.1 LTS, and have Bioconductor 3.4 installed.