top of page

Compilation of minimal R-package under ubuntu

#update and upgrade the system

> sudo apt-get update

> sudo apt-get upgrade

> sudo apt-get install r-base

#install R development tools

>sudo apt-get install r-base-dev

>R

# package

>power <- function (a,b) a^b

>data<-5

>exp<-10

>package.skeleton (list = c("power","data","exp"), name="powercompute")

#quit R and in SHELL terminal checking and building

R CMD check powercompute

R CMD build powercompute

>sudo R CMD INSTALL powercompute.tar.gz

bottom of page