Tag Info

New answers tagged

1

I was getting this error too and it appeared to be because I had saved the .Rmd file in a different directory to R's default one. i.e, my default R directory is getwd() "C:/Users/Dave/Documents" When I create and run a .Rmd file from the default directory the maths symbols render fine. However, if I create and save a .Rmd file in a different directory ...


2

You can try other ways of exporting R objects to latex like xtable package. It has a lot more options and gives more control over the type of table exported. A small example : to specify the digits in the statistics reported, xtable(sumStats, digits = 2) and can specify floating environments like longtable etc. Please see documentation and gallery for ...


0

I had the same question, and I managed to fix it following this recommendation at least for latextools, it may be the same for latexing. /R/Main.sublime-menu file has to be edited: (which in Ubuntu is in: ~/.config/sublime-text-3/Packages/SublimeREPL/config/R/Main.sublime-menu) and the additional scope has to be modified in this way: "additional_scopes": ...


5

The listings package categorizes characters in three ways: letter, digit, and other. The R language for listings, whose definition can be found in lstdvrs.dtx, is defined in such a way as to treat periods as other: \lst@definelanguage{R}% %... alsoother={._$},% %... }% However, as I understand it, in R, a period (.) can be used in identifiers ...


0

This isn't the answer to the original post, but I came here Googling for "Longtable misplaced noalign" so my eventual solution might be useful for someone. In my case I needed a \\ after the \caption and \label. This seems incredibly counterintuitive to me so if anyone can explain why or tell me where this is documented I'd be grateful. ...



Top 50 recent answers are included