Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optigrab #15

Open
nsheff opened this issue Aug 2, 2019 · 5 comments
Open

optigrab #15

nsheff opened this issue Aug 2, 2019 · 5 comments

Comments

@nsheff
Copy link
Member

nsheff commented Aug 2, 2019

Rscript -e 'install.packages("PEPPROr", repos=NULL, type="source")'
Installing package into ‘/usr/local/lib/R/host-site-library’
(as ‘lib’ is unspecified)
ERROR: dependency ‘optigrab’ is not available for package ‘PEPPROr’
* removing ‘/usr/local/lib/R/host-site-library/PEPPROr’
Warning message:
In install.packages("PEPPROr", repos = NULL, type = "source") :
  installation of package ‘PEPPROr’ had non-zero exit status

Can we make it install dependencies automatically? It worked after I did:

Rscript -e 'install.packages("optigrab")'

first. But it would be better if it did this automatically.

@jpsmith5
Copy link
Collaborator

jpsmith5 commented Aug 2, 2019

I had tried setting that up with a dependencies=TRUE clause but it wasn’t working for me. Not sure if I was missing something in proper usage. Ideally, yes I would prefer it to install all dependencies but not sure how R handles that with some packages being cran, bioconductor, or github based.

@jpsmith5
Copy link
Collaborator

jpsmith5 commented Aug 2, 2019

Unfortunately those suggestions still won't help. First, it would require a user to manually install both devtools and BiocInstaller. Then, I'm still not sure how you would specify a github repo for the install command. Any other thoughts?

@jpsmith5
Copy link
Collaborator

jpsmith5 commented Aug 2, 2019

Just found this: https://cran.r-project.org/web/packages/miniCRAN/index.html

Maybe an option.

@jpsmith5
Copy link
Collaborator

jpsmith5 commented Nov 27, 2019

Using devtools::install can roughly achieve this as we've discussed before, but it still requires a separate install of both devtools, 'pepr', and GenomicRanges which is required by GenomicDistributions which this package requires. I don't know yet if that can be a recursive, if this needs that, also install that type scenario.

So this works, but only if the requirements of the requirements already exist:

Rscript -e 'devtools::install(file.path("/path/to/peppro/PEPPROr/"), dependencies=TRUE, repos="https://cloud.r-project.org/")'

Still need to keep playing around with options here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants