Submitting a package to CRAN

May 16, 2012

(This article was first published on Gianluca Baio's blog, and kindly contributed to R-bloggers)

The process is relatively smooth, I think – especially if you start off with a Linux machine. However, when I had to compile the package and documentation for BCEA, I still had a couple of blips. 

The first problem was in the documentation. R tries to automatically compile a LaTeX file which is derived from the Rd (documentation files – a bit of a pain in the arse to do, but helpful nonetheless). However, for some reason I was constantly getting a warning and the resulting pdf file was not correct (ie it would not have the necessary hyperlinks). 

After much searching on the web, I figured out that the problem was the absence of the LaTeX package texinfo. Funny thing is that when I tried to compile the .tex file using the command pdflatex file.tex it was working OK. So I think there’s a problem in the way in which R manages the LaTeX compilation. On top of this, you’d need the LaTeX package inconsolata (otherwise the font for the code would look weird).

To leave a comment for the author, please follow the link and comment on their blog: Gianluca Baio's blog. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)