Wednesday 13 June 2018

Trying to test drawProteins with new version of ggplot2...

A new version of ggplot2 is being launched.
I need to check this with my package drawProteins.

Here is the information about the new version of ggplot2:
https://github.com/tidyverse/ggplot2/blob/master/NEWS.md#ggplot2-2219000

Here is a link about how to a development version of ggplot2:
https://gist.github.com/kohske/1150934

Step 1: Create new Project in RStudio
Step 2: The script:
# script to test drawProteins with new version of ggplot2
# install devtools
install.packages('devtools')

# install dependency of scales package
install.packages(c("RColorBrewer", "stringr", "dichromat", "munsell", "plyr", "colorspace"))
install.packages("Rcpp")
# install dependency of ggplot2 package
install.packages("rlang")

# Open devtools package
library(devtools)

# move to development mode
# scales and ggplot2 are installed in "~/R-dev" directory, so official version of ggplot2 are not removed.
dev_mode(TRUE)

# download development version of scales and ggplot2
install_github("hadley/scales", force=TRUE)
# main branch of development
install_github("hadley/ggplot2")
# (Optional) install_github("ggplot2", "kohske", "feature/new-guides-with-gtable")

# activate development version of ggplot2
library(ggplot2)


# install bioconductor version of drawProteins

source("https://bioconductor.org/biocLite.R")
biocLite("drawProteins")
library(drawProteins)

source("https://bioconductor.org/biocLite.R")
biocLite("BiocStyle")

# run some tests...
# try to compile vignette
# vignette seems to assembled OK....


Comments
Interestingly we now have a d> cursor...

Needed to download version 3.5 of R.
Then need lots of new installs....

Needed a new version of Rccp and rlang packages as well.

html of vignette seems like an easy way to test.
All looks good...
Figures assembled without errors.
Session info:


Says drawProteins_1.0.0
and
ggplot2_2.2.1.9000
so new version.

Basically this implies that these two should work together OK.
Good news.