[Bioc-devel] A question on adding data in R package development

Li, Dongmei Dongmei_Li at URMC.Rochester.edu
Sat Feb 28 15:08:01 CET 2015


Hi,

I have a question on adding data in R package development. This is my
first time to write a R package and I used the Rstudio for it. I save an
example data into .Rda format using the save() function in R and put in
into the data subdirectory in my package. When I used Rstudio to compile
the vignettes file, it works fine with the following R code:

ovarian_cancer_ex<-load("~/Documents/RBM/data/ovarian_cancer_example.rda")
ovarian_cancer_ex
[1] "ovarian_cancer_methylation"
summary(ovarian_cancer_methylation)


The Rstudio also build the source package successfully. However, it gives
me the following error message after I uploaded to the Bioconductor (whey
they are trying to build packages for different systems using the source
package):
Warning in readChar(con, 5L, useBytes = TRUE) :
  cannot open compressed file
'/Users/pkgbuild/Documents/RBM/data/ovarian_cancer_example.rda', probable
reason 'No such file or directory'

Error: processing vignette 'RBM.Rnw' failed with diagnostics:
 chunk 7 
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
Execution halted


I will really appreciate if anyone could give me a hint for solving this
issue. Thanks so much for all your help!

Best,
Dongmei



More information about the Bioc-devel mailing list