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

can't install MR-PRESSO #7

Open
r-mustafa opened this issue May 17, 2019 · 5 comments
Open

can't install MR-PRESSO #7

r-mustafa opened this issue May 17, 2019 · 5 comments

Comments

@r-mustafa
Copy link

Hi,

I am trying to install MR-PRESSO package but I got the following error messages:

if (!require("devtools")) { install.packages("devtools") } else {}
Loading required package: devtools
Error: package or namespace load failed for ‘devtools’ in namespaceExport(ns, exports):
undefined exports: ansi_hide_cursor, ansi_show_cursor, ansi_with_hidden_cursor, bg_black, bg_blue, bg_cyan, bg_green, bg_magenta, bg_red, bg_white, bg_yellow, boxx, cat_boxx, cat_bullet, cat_line, cat_print, cat_rule, cli_sitrep, col_black, col_blue, col_cyan, col_green, col_grey, col_magenta, col_red, col_silver, col_white, col_yellow, combine_ansi_styles, console_width, demo_spinners, get_spinner, is_ansi_tty, is_dynamic_tty, is_utf8_output, list_border_styles, list_spinners, make_ansi_style, make_spinner, rule, style_blurred, style_bold, style_dim, style_hidden, style_inverse, style_italic, style_reset, style_strikethrough, style_underline, symbol, tree
Installing package into ‘\icnas4.cc.ic.ac.uk/rm2715/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/devtools_2.0.2.zip'
Content type 'application/zip' length 263130 bytes (256 KB)
downloaded 256 KB

package ‘devtools’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\rm2715\AppData\Local\Temp\RtmpWcPtce\downloaded_packages
Warning message:
S3 methods ‘as.character.cli_sitrep’, ‘format.cli_sitrep’, ‘print.ansi_string’, ‘print.ansi_style’, ‘print.boxx’, ‘print.cli_sitrep’, ‘print.cli_spinner’, ‘print.rule’, ‘print.tree’ were declared in NAMESPACE but not found

devtools::install_github("rondolab/MR-PRESSO")
Error in namespaceExport(ns, exports) :
undefined exports: ansi_hide_cursor, ansi_show_cursor, ansi_with_hidden_cursor, bg_black, bg_blue, bg_cyan, bg_green, bg_magenta, bg_red, bg_white, bg_yellow, boxx, cat_boxx, cat_bullet, cat_line, cat_print, cat_rule, cli_sitrep, col_black, col_blue, col_cyan, col_green, col_grey, col_magenta, col_red, col_silver, col_white, col_yellow, combine_ansi_styles, console_width, demo_spinners, get_spinner, is_ansi_tty, is_dynamic_tty, is_utf8_output, list_border_styles, list_spinners, make_ansi_style, make_spinner, rule, style_blurred, style_bold, style_dim, style_hidden, style_inverse, style_italic, style_reset, style_strikethrough, style_underline, symbol, tree
In addition: Warning message:
S3 methods ‘as.character.cli_sitrep’, ‘format.cli_sitrep’, ‘print.ansi_string’, ‘print.ansi_style’, ‘print.boxx’, ‘print.cli_sitrep’, ‘print.cli_spinner’, ‘print.rule’, ‘print.tree’ were declared in NAMESPACE but not found

Could you help me with this?

Many thanks,
R

@rondolab
Copy link
Owner

Hi,
this seems to be a problem with the devtools package unfortunately.
Which version of R are you using? Have you updated it?
Best.

@guopingsdu
Copy link

Hi,
I am trying to install MR-PRESSO package but I got the following error messages:
image
Could you help me with this?

Many thanks!

@rondolab
Copy link
Owner

rondolab commented Feb 4, 2020

Hi,
I don't see anything wrong in your command, please try again by copying this command which works
devtools::install_github("rondolab/MR-PRESSO")
Have you tried to install it a few times?
I don't see what this issue could be other than problems to connect to github because of the timed out.
Could you maybe try installing the package manually?

  1. Download the package from github https://github.com/rondolab/MR-PRESSO/archive/master.zip
  2. unzip MR-PRESSO-master.zip
  3. devtools::install("MR-PRESSO-master")
    Let us know if this worked.
    Best.

@guopingsdu
Copy link

Hi,
I don't see anything wrong in your command, please try again by copying this command which works
devtools::install_github("rondolab/MR-PRESSO")
Have you tried to install it a few times?
I don't see what this issue could be other than problems to connect to github because of the timed out.
Could you maybe try installing the package manually?

  1. Download the package from github https://github.com/rondolab/MR-PRESSO/archive/master.zip
  2. unzip MR-PRESSO-master.zip
  3. devtools::install("MR-PRESSO-master")
    Let us know if this worked.
    Best.

Hi,
Thanks for your reply!
I have tried the first way many times to install this package but it failed.
I download the package and the second way worked!
Thanks a lot!

@kai-lim
Copy link

kai-lim commented Feb 11, 2020

Hi there,

I tried installing the package with command devtools::install_github("rondolab/MR-PRESSO")

but I got the following errors:

`Downloading GitHub repo rondolab/MR-PRESSO@master
Error: Failed to install 'MRPRESSO' from GitHub:
  Command not found
In addition: Warning messages:
1: In untar2(tarfile, files, list, exdir) :
  skipping pax global extended headers
2: In untar2(tarfile, files, list, exdir) :
  skipping pax global extended headers`

I tried your previous suggestion by downloading the package manually, unzipped it, and did devtools::install("MR-PRESSO-master"),

but I still got the following error:

Error in process_initialize(self, private, command, args, stdin, stdout, : Command not found

I wonder if there is anything I can try to do about this? I am using R 3.6.1.

I have another laptop running with R 3.5.1, and the package can be installed successfully, I wonder if the R version matters 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

4 participants