search for: tolatex

Displaying 18 results from an estimated 18 matches for "tolatex".

2012 Dec 16
1
lyx knitr y toLatex
Hola. Estoy utilizando lyx con el módulo de knitr y tengo un problemilla con la función toLatex del paquete memisc. Pongo un ejemplo mejor. En Rstudio lo puedo hacer como sigue en un fichero Rnw. y la tabla en el pdf aparece alineada en el pdf. \documentclass{article} \usepackage{booktabs} \usepackage{dcolumn} \begin{document} <<>>= library(memisc) X1 <- rnorm(1000) X2 &l...
2009 Aug 26
2
faulty formatting of toLatex(sessionInfo())
Dear all I am writing an Sweave document and have encountered formatting issues with the "locale" part of toLatex(sessionInfo()). The fact that there is no spaces between the various "locale" variables means that LaTeX cannot easily find an appropriate place to break the lines, and some will get printed off screen. Below is the text output, and this .pdf document [1] shows the (faulty) tex result. Co...
2015 Jul 07
1
[ on call
...r: e export("caption<-", "caption", "label", "label<-", "align<-", "align", "digits<-", "digits", "display<-", "display", "xtable", "print.xtable", "toLatex.xtable") > e[[1L]] e[[1L]] export > e[-1L] e[-1L] "caption<-"("caption", "label", "label<-", "align<-", "align", "digits<-", "digits", "display<-", "display", "x...
2009 Apr 22
1
RFC: Ability to suppress 'locale' from sessionInfo
The printing of the locale information from sessionInfo is not very tidy. Using toLatex(sessionInfo) pretty much guarantees "badness" from breaking the margin boundary (though my version of TeX no longer reports such errors). A random example is here: http://cran.r-project.org/web/packages/Matrix/vignettes/Design-issues.pdf I find the locale information unnecessary and rig...
2010 Dec 30
1
latex() etc.: How to nicely format a matrix for a LaTeX document?
Dear (T)eXpeRts, I try to create a LaTeX table from an R matrix for the first time. I am not sure what the "best" approach is, I just read about latex() from Hmisc (toLatex() didn't work). Consider the following minimal example: library(Hmisc) mat <- matrix(c(1,NA,3,100,10000,4), ncol = 3, byrow = TRUE) latex(mat, file = "", booktabs = TRUE, numeric.dollar = FALSE, table.env = FALSE) I am only interested in the part between \midrule and \bottomrule...
2012 Feb 07
1
xtable "beta" testing wanted
...Thanks, Charlie Roosen xtable maintainer -------------- NEWS 1.7-0 (NOT YET RELEASED) * Added some vectorization code to improve performance. * Let "caption" be length 2, in which case the second value is the short caption used when creating a list of tables. * Added "toLatex" method. * Included "print.xtable" in the exported methods in the NAMESPACE file. * Added "print.results" argument to "print" that can be used to suppress the printing. * Added "format.args" argument to "print" that can be used to...
2011 Dec 16
2
R package BibTex entries: looking for a more general solution
...l("c", pkgs) bibs <- do.call("c", bibs) for(i in seq_along(pkgs)) bibs[[i]][1] <- gsub("{,", paste("{", pkgs[i], ",", sep = ""), bibs[[i]][1], fixed = TRUE) if(header) header <- gsub("^", "%", toLatex(sessionInfo())) output <- file(filename, "a") cat(header, preamble, sep='\n', file=output, append=TRUE) ## write everything to a single .bib file writeLines(do.call("c", lapply(bibs, as.character)), con=output) close(output) if(verbose) cat(&quot...
2007 Sep 24
1
Sweave and ggplot2
Hi, I am trying to use ggplot2 graphics with Sweave, but I got problems with transparency support when generating pdf figures, even if I specify a ?pdf.version? argument in Sweave options. More precisely, forcing the pdf version by creating the file manually works : <<fig=FALSE,results=HIDE>>= pdf(version="1.4",file="foo.pdf") ggplot(d,aes(y=t,x=u)) +
2011 Jun 05
3
reproduction archives
Hello Folks, As some of my old code broke when an updated package changed its interface, I started thinking about reproduction of analyses. It's not good enough to save our code - we have to save the package versions those analyses used as well as the R-core. I saw a couple references to "reproduction archives" around, but nothing specific. Is there any good way to package up
2005 Sep 06
2
help.search problem
Dear Fellow R Users, I have recently come across a weird problem with help.search: > help.search("tps") Error in rbind(...) : number of columns of matrices must match (see arg 8) > This happens no matter what I search for... Any thoughts ? Thanks, Tolga Please follow the attached hyperlink to an important disclaimer
2009 Oct 26
0
R 2.9.0 is released
...now declared illegal. o New print() (S3) method for class "function", also used for auto-printing. Further, .Primitive functions now print and auto-print identically. The new method is based on code suggestions by Romain Fran?ois. o The print() and toLatex() methods for class "sessionInfo" now show the locale in a nicer format and have arguments to suppress locale information. o In addition to previously only round(), there are other 'Math' group (S3) methods for 'difftime', such as floor(), si...
2009 Oct 26
0
R 2.9.0 is released
...now declared illegal. o New print() (S3) method for class "function", also used for auto-printing. Further, .Primitive functions now print and auto-print identically. The new method is based on code suggestions by Romain Fran?ois. o The print() and toLatex() methods for class "sessionInfo" now show the locale in a nicer format and have arguments to suppress locale information. o In addition to previously only round(), there are other 'Math' group (S3) methods for 'difftime', such as floor(), si...
2009 Oct 26
0
R 2.10.0 is released
...now declared illegal. o New print() (S3) method for class "function", also used for auto-printing. Further, .Primitive functions now print and auto-print identically. The new method is based on code suggestions by Romain Fran?ois. o The print() and toLatex() methods for class "sessionInfo" now show the locale in a nicer format and have arguments to suppress locale information. o In addition to previously only round(), there are other 'Math' group (S3) methods for 'difftime', such as floor(), si...
2009 Oct 26
0
R 2.10.0 is released
...now declared illegal. o New print() (S3) method for class "function", also used for auto-printing. Further, .Primitive functions now print and auto-print identically. The new method is based on code suggestions by Romain Fran?ois. o The print() and toLatex() methods for class "sessionInfo" now show the locale in a nicer format and have arguments to suppress locale information. o In addition to previously only round(), there are other 'Math' group (S3) methods for 'difftime', such as floor(), si...
2004 Oct 04
7
R 2.0.0 is released
...op-level parser/analyzer for R documentation format. o tools::codoc() (and hence R CMD check) now checks any documentation for registered S3 methods and unexported objects in packages with namespaces. o Package 'utils' contains several new functions: - Generics toBibtex() and toLatex() for converting R objects to BibTeX and LaTeX (but almost no methods yet). - A much improved citation() function which also has a package argument. By default the citation is auto-generated from the package DESCRIPTION, the file 'inst/CITATION' can be used to override this,...
2004 Oct 04
7
R 2.0.0 is released
...op-level parser/analyzer for R documentation format. o tools::codoc() (and hence R CMD check) now checks any documentation for registered S3 methods and unexported objects in packages with namespaces. o Package 'utils' contains several new functions: - Generics toBibtex() and toLatex() for converting R objects to BibTeX and LaTeX (but almost no methods yet). - A much improved citation() function which also has a package argument. By default the citation is auto-generated from the package DESCRIPTION, the file 'inst/CITATION' can be used to override this,...
2023 Apr 21
0
[Rd] R 4.3.0 is released
...Feakins. * The as.data.frame.vector() utility now errors for wrong-length row.names. It warned for almost six years, with "Will be an error!". * sessionInfo() now also contains La_version() and reports codepage and timezone when relevant, in both print() and toLatex() methods which also get new option tzone for displaying timezone information when locale = FALSE. * New function R_compiled_by() reports the C and Fortran compilers used to build R, if known. * predict(<lm>, newdata = *) no longer unnecessarily creates an of...
2023 Apr 21
0
[Rd] R 4.3.0 is released
...Feakins. * The as.data.frame.vector() utility now errors for wrong-length row.names. It warned for almost six years, with "Will be an error!". * sessionInfo() now also contains La_version() and reports codepage and timezone when relevant, in both print() and toLatex() methods which also get new option tzone for displaying timezone information when locale = FALSE. * New function R_compiled_by() reports the C and Fortran compilers used to build R, if known. * predict(<lm>, newdata = *) no longer unnecessarily creates an of...