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

how to install? #14

Open
complexgenome opened this issue Aug 31, 2020 · 4 comments
Open

how to install? #14

complexgenome opened this issue Aug 31, 2020 · 4 comments

Comments

@complexgenome
Copy link

  1. download

git clone "https://github.com/statgen/Rprs.git"

  1. Go to the library you'd like to install

R CMD INSTALL ../Rprs -l ./
Warnings and errors:


Downloading https://github.com/statgen/savvy/archive/5cf11170e5d.tar.gz
Download failed with error 400 for: //github.com/statgen/savvy/archive/5cf11170e5d.tar.gz
Failed to build package statgen/savvy
ERROR: configuration failed for package ‘Rprs’

If I don't clone in a seprate directory upon tryial to install it errors out.
Two steps:

git clone "https://github.com/statgen/Rprs.git"

R CMD INSTALL Rprs -l ./

Error

ERROR: cannot install to srcdir for package ‘Rprs’
 removing ‘/mnt/mfs/hgrcgrid/path/libraries_R/R_LIB4.0/Rprs’

Any clues? I'm on debian, R4.0

@jonathonl
Copy link

Are you behind a proxy? If so, see pfultz2/cget#77.

@complexgenome
Copy link
Author

Yes, I'm behind proxy and http, https are already set to circumvent proxy firewalls.

Which one of the above two methods is good for installation?

@jonathonl
Copy link

I'm not sure which "two methods" you are referring to. In any case, is the http_proxy environment variable set when when you run the install? See https://stackoverflow.com/questions/3168171/how-can-i-open-a-website-with-urllib-via-proxy-in-python. This package uses a python script that uses urllib to install dependencies. These dependency downloads are failing due to a quirk with urllib and HTTP proxies.

@complexgenome
Copy link
Author

I've following two lines in my .bashrc file

export http_proxy="some value"
export https_proxy="some more value"

I'm referring to the following two methods, sorry I wasn't clear in my first post:

method 1

git clone "https://github.com/statgen/Rprs.git"

R CMD INSTALL Rprs -l ./

method 2: a two step process

a) download
git clone "https://github.com/statgen/Rprs.git"

b) Go to the library you'd like to install
cd r_lib_folder
R CMD INSTALL ../Rprs -l ./

folder ../Rprs is one level above the r_lib_folder directory.

best,

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