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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -