delected RHistory
fixed margins in R code