r - Excess backslashes in stargazer latex output -


i weird result when trying output regression results latex tables using stargazer package in r: when do

stargazer(linear.1,linear.2) 

i fine latex table displayed in r console can copy , paste latex editor. however, when use

table<-stargazer(linear.1,linear.2) 

the character object 'table' not have same latex output 1 expect given results of first line of code, rather same latex code before additional backslash before every backslash in original latex code, e.g. instead of \begin{document} \\begin{document}, instead of 2 backslashes line break 3 backslashes etc.

any idea causing behavior , how fix it?

thanks!

perfectly normal behavior, backslashes in r string require escape character happens be... baskslash!


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -