I tried to publish a shinyapp to both shinyapp.io and rstudioconnect.com but there has connection error, here I raised Unable publish to RStudio Connect : Error in yaml::yaml.load(enc2utf8(string), ...) : Reader error: control characters are not allowed: #81 at 276 #115 and Error in yaml::yaml.load(enc2utf8(string), ...) : Reader error: control characters are not allowed: #81 at 276 #31. It works locally but once publish became error as you can see whole knitting process via below gif.
I've recorded few animated gif to know the error thoroughly. error 01, error 02, error 03. Kindly refer to the gif, here I also refer to some articles who faced similar error.