chiragjp / nhanes_scidata

NHANES 99-06 Data Descriptor and User's Guide
10 stars 7 forks source link

require "survey" and "survival" packages in docker instance #1

Closed chiragjp closed 8 years ago

chiragjp commented 8 years ago

@nampho2 -- the analyses will need the survey and survival R packages; can you update the docker file if appropriate?

npho commented 8 years ago

Will do, working on trying to just include it straight out in the xwas package as a bundle. In either event it will be there for the release.

npho commented 8 years ago

The survey and survival R packages were added through xwas library dependencies in an update to that package. Demo below, resolving issue.

Load directly,

[vagrant@docker-vagrant ~]$ docker run -it chiragjp/nhanes_scidata /bin/bash
[root@77d4d149aa27 /]# su - rstudio
[rstudio@77d4d149aa27 ~]$ R
> library(survey, quietly=TRUE)

Attaching package: ‘survey’

The following object is masked from ‘package:graphics’:

    dotchart

> library(survival)
> 

Or through using xwas,

[rstudio@77d4d149aa27 ~]$ R
> library(xwas)
Loading required package: parallel
Loading required package: survey
Loading required package: grid

Attaching package: ‘survey’

The following object is masked from ‘package:graphics’:

    dotchart

Loading required package: survival
>