cran

Installing all CRAN packages that are not already installed?

The following R commands will install all CRAN packages: availablePackages <- available.packages()[,1] install.packages(availablePackages) And the following command will list all installed packages: installedPackages <- .packages(all.available = TRUE) My question is: How do I instruct R to install all CRAN packages that are not alr...

R: apt-get install r-cran-foo vs. install.packages("foo")

When installing R packages (say mcmcpack in this example) under Ubuntu I have the choice between the following two methods of installation: # Let the distribution's packaging system take care of installation/upgrades apt-get install r-cran-mcmcpack # Let R take care of installation/upgrades install.packages("mcmcpack") Questions: I...

how can a test script inform R CMD check that it should emit a NOTE?

I'm writing a R library together with other developers. we are using RUnit for unit testing. our process for describing new functionality: we define new unit tests, initially marked as DEACTIVATED; one block of tests at a time we activate them and implement the function described by the tests. almost all the time we have a small amou...

[R] how do I quickly group the time column in a dataframe into intervals?

Hi, Assuming in R, I have a data.frame with the first column representing the time (as POSIXct). The rest of the columns (e.g., columns 2) are numeric data. I would like to group time into 3-minute intervals. Each interval will the the average of values that falls into that particular interval. Right now, I have a for-loop that iterat...

How to check if a CRAN mirror is outdated?

R users are advised to download R and R packages from local CRAN mirrors. But some are outdated. Is there an easy way to check if a repository is outdated? Any function in R that does that? ...

tools::texi2dvi - what happened to it?

I'm familiar with the fact that you can create LaTeX reports directly from R with tools package and texi2dvi function, but I was surprised to see that tools package is missing. It's just not in CRAN repositories. Does anyone know about an adequate replacement for texi2dvi? ...

Install R packages from binary in Ubuntu Lucid

I've installed R in Ubuntu Lucid with the command sudo aptitude install r-base When I try to "install.packages" it seems to download source and then spend ages compiling it. How can I get it to just download and install the binaries, like I'm used to on Windows? Is there any need to compile the packages myself? I'm running insi...