Tag Info

New answers tagged


I have discovered that, at least under Windows 7 (64 bit), there appears to be a race condition in the OS (maybe there is some sort of caching of the directory that takes a while to update?), where the lockfile is sometimes deleted, but a subsequent call to create a lockfile fails because the OS reports the lockfile is still present. This happens ...


In this case, you are basically out of luck. You cannot draw plots with too many graphical elements using the tikz device in R. You have to either simplify your plot, or use another graphical device (such as the default pdf device; if you really care a lot about the font family, you may take a look at this blog post).


If you look at your example, the table does not have a number. I assume you want to reference the table number, so first we must give the table a number. To do this, use the caption argument. Second, when using xtable, you have to be careful with which arguments you want to give to xtable and which arguments to print.xtable. You are currently passing the ...


Try this: #' \documentclass[a4paper, 10pt]{article} #' \begin{document} mean(1:10) plot(1:10) #' \end{document}


The problem with font encoding has been solved in the Sweave package. You should use param [noae] in header, like \usepackage[noae]{Sweave}. This param forces Sweave to use T1 encoding and the problem with bold russian fonts is gone. For additional info, see the R newsletter, page 42.


A bit of background... The listings package has different mechanisms to define keywords. Two keys you're likely to use most often are keywords and morekeywords. The former defines a list of keywords from scratch (overwriting any existing list), whereas the latter adds to the existing list (if any). You can also delete existing keywords by using the ...


Here you have a luatex implementation. It is very straightforward: \documentclass{article} % Define the function in lua, and the constant DBL_EPSILON \directlua{ DBL_EPSILON = math.pow(2,-52) function chebyshev_init(dos, nos, eta) local i, ii, err; if nos<1 then return 0 end err = 0.0 i = 0 for ii=0,nos do i = nos ...

Top 50 recent answers are included