OS: WIN7
R: 3.03
RStudio: 0.98.501
updated on Tue Apr 08 14:57:09 2014, it was first post here
R is available at http://www.r-project.org/.
if (!require(installr)) {
# load / install+load installr
install.packages("installr")
require(installr)
}
updateR()
install.packages("FinCal", dependencies = TRUE) # FinCal is the package name
or
RStudio -> Tools -> Install Packages -> Install from 'Repository (CRAN)'
install.packages("FinCal_0.5.zip")
or
RStudio -> Tools -> Install Packages -> Install from 'Package Archive File'
or
R CMD INSTALL FinCal_0.5.zip
source("http://bioconductor.org/biocLite.R") # installs 'BiocInstaller'
biocLite() # installs automatically 'Biobase' 'IRanges' 'AnnotationDbi' ‘BiocGenerics’ ‘RSQLite’
all_group() # Get list of all packages in BioConductor
biocLite(c("GenomicFeatures", "AnnotationDbi")) #installing GenomicFeatures &AnnotationDbi packages
install.packages("devtools") # requires for downloading & installation of GitHub packages
require(devtools)
install_github(repo = "FinCal", username = "felixfan") # installing FinCal package
update.packages(ask = FALSE, repos = "http://cran.rstudio.org", checkBuilt = TRUE)
or just
update.packages(ask = FALSE)
.libPaths() # gets the library trees within which packages are looked for
myPath = c("C:/Users/alice/Documents/R/win-library/3.0") # change it to your own dir
package_df <- as.data.frame(installed.packages(myPath)) #Get currently installed packages
package_list <- as.character(package_df$Package)
install.packages(package_list) #Re-install all installed packages
source("http://bioconductor.org/biocLite.R")
biocLite()
biocLite("BiocUpgrade")
Installing R packages from CRAN/Bioconductor/Omegahat/Github
R 3.0.0 is released! (what’s new, and how to upgrade)
Automated Re-Install of Packages for R 3.0