MRCIEU / TwoSampleMR

R package for performing 2-sample MR using MR-Base database
https://mrcieu.github.io/TwoSampleMR
Other
431 stars 176 forks source link

ao <- available_outcomes() is wrong? #35

Open china-aobai opened 6 years ago

china-aobai commented 6 years ago

@explodecomputer dear explodecomputer: there is a difficulty:

library (TwoSampleMR) Welcome to TwoSampleMR. / > Check for updates: https://github.com/MRCIEU/TwoSampleMR / > Full documentation: https://mrcieu.github.io/TwoSampleMR < - > ao available_outcomes () Error: Cannot read token from alleged. RDS file: Mrbase.oautherror in readRDS(token_path): an error occurred while reading the link looking forward your help~ selena

china-aobai commented 6 years ago

thank mr, I have solved it,delete two folders:.Rhistory and .Rdata

china-aobai commented 6 years ago

I'm gonna crash, it's wrong again, can you tell me why?

mightyphil2000 commented 6 years ago

Can you send error and code used to produce the error?

Try ao <- available_outcomes ()

In Your original email you wrote: <-ao available_outcomes ()

But that won't work. Was that a typo?

Philip Haycock, PhD MR-Base: www.mrbase.org CRUK Population Research Fellow MRC Integrative Epidemiology Unit University of Bristol Oakfield House, Oakfield Grove Bristol, BS8 2BN, UK T +44 (0)117 3310088


From: china-aobai notifications@github.com Sent: 04 August 2018 10:07:16 To: MRCIEU/TwoSampleMR Cc: Subscribed Subject: Re: [MRCIEU/TwoSampleMR] ao <- available_outcomes() is wrong? (#35)

I'm gonna crash, it's wrong again, can you tell me why?

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/MRCIEU/TwoSampleMR/issues/35#issuecomment-410435606, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKQwPsZEAE9xOF71lFcSir6HIL-Cgz7wks5uNWREgaJpZM4Vuy4c.

china-aobai commented 6 years ago

Dear doctor, Hello!Sincerely thank you for your reply.Do you mean I wrote the wrong code? Is this code written like this:ao <- available_outcomes("mrbase.oauth") Selena

mightyphil2000 commented 6 years ago

What happens when you restart and just type

library(TwoSampleMR) available_outcomes()

Philip Haycock, PhD MR-Base: www.mrbase.org CRUK Population Research Fellow MRC Integrative Epidemiology Unit University of Bristol Oakfield House, Oakfield Grove Bristol, BS8 2BN, UK T +44 (0)117 3310088


From: china-aobai notifications@github.com Sent: 04 August 2018 16:16:59 To: MRCIEU/TwoSampleMR Cc: Philip Haycock; Comment Subject: Re: [MRCIEU/TwoSampleMR] ao <- available_outcomes() is wrong? (#35)

Dear doctor, Hello!Sincerely thank you for your reply.Do you mean I wrote the wrong code? Is this code written like this:ao <- available_outcomes("mrbase.oauth") Selena

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MRCIEU/TwoSampleMR/issues/35#issuecomment-410456412, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKQwPmXyQvDrMmbNLhhVVHPZBjEfrqSTks5uNbrrgaJpZM4Vuy4c.

china-aobai commented 6 years ago

like this:

library(TwoSampleMR) Welcome to TwoSampleMR. [>] Check for updates: https://github.com/MRCIEU/TwoSampleMR [>] Full documentation: https://mrcieu.github.io/TwoSampleMR available_outcomes() 2018-08-05 10:23:47> No httr_oauth_cache file found at mrbase.oauth - creating new file. Adding mrbase.oauth to .gitignore Waiting for authentication in browser... Press Esc/Ctrl + C to abort Authentication complete. Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: Connection timed out after 10000 milliseconds

explodecomputer commented 6 years ago

Hey try running like this:

ao <- available_outcomes(access_token=NULL)

Are you running this in China by any chance? Some people have reported problems with accessing google authentication

From: china-aobai notifications@github.com Reply-To: MRCIEU/TwoSampleMR reply@reply.github.com Date: Sunday, 5 August 2018 at 03:27 To: MRCIEU/TwoSampleMR TwoSampleMR@noreply.github.com Cc: gibran hemani explodecomputer@gmail.com, Mention mention@noreply.github.com Subject: Re: [MRCIEU/TwoSampleMR] ao <- available_outcomes() is wrong? (#35)

like this:

library(TwoSampleMR) Welcome to TwoSampleMR. [>] Check for updates: https://github.com/MRCIEU/TwoSampleMR [>] Full documentation: https://mrcieu.github.io/TwoSampleMR available_outcomes() 2018-08-05 10:23:47> No httr_oauth_cache file found at mrbase.oauth - creating new file. Adding mrbase.oauth to .gitignore Waiting for authentication in browser... Press Esc/Ctrl + C to abort Authentication complete. Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: Connection timed out after 10000 milliseconds

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

china-aobai commented 6 years ago

Yes, Sir, I'm glad to receive your reply. it prompts me when I want  the exposure datas after running "ao < -available_outcomes (access_token=NULL)":

library(MRInstruments)> data(gwas_catalog) bmi_gwas <- subset(gwas_catalog, grepl("Speliotes", Author) & Phenotype == "Body mass index (kg/m2 increase)") bmi_exp_dat <- format_data(bmi_gwas) Error in loadNamespace(name) : there is no package called ‘plyr’ I'm sorry I asked so many questions

explodecomputer commented 6 years ago

You need to install the plyr package now


Install.packages("plyr")

From: china-aobai notifications@github.com Reply-To: MRCIEU/TwoSampleMR reply@reply.github.com Date: Sunday, 5 August 2018 at 12:03 To: MRCIEU/TwoSampleMR TwoSampleMR@noreply.github.com Cc: gibran hemani explodecomputer@gmail.com, Mention mention@noreply.github.com Subject: Re: [MRCIEU/TwoSampleMR] ao <- available_outcomes() is wrong? (#35)

Yes, Sir, I'm glad to receive your reply. it prompts me when I want the exposure datas after running "ao < -available_outcomes (access_token=NULL)":

library(MRInstruments)> data(gwas_catalog) bmi_gwas <- subset(gwas_catalog, grepl("Speliotes", Author) & Phenotype == "Body mass index (kg/m2 increase)") bmi_exp_dat <- format_data(bmi_gwas) Error in loadNamespace(name) : there is no package called ‘plyr’ I'm sorry I asked so many questions

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

china-aobai commented 6 years ago

Dear Sir, I'm sorry for not replying your email in time today. I will run it again. Thank you very much for your attention.I'll come back tomorrow. Uh-huh

china-aobai commented 6 years ago

@explodecomputer Dear Mr. Explodecomputer ,I really appreciate your previous help. Now I can get the exposure data. However, unfortunately, I have trouble getting the result data.Could you analyze it for me again?

chd_out_dat extract_outcome_data (

  • SNPS = bmi_exp_dat $SNP,
  • outcomes = 7 +) Extracting the data for 27 SNPS (s) from 1 GWAS (s) Error: Cannot read token from alleged. RDS file: Mrbase.oautherror in readRDS(token_path): an error occurred while reading the link chd_out_dat < -extract_outcome_data (SNPS = bmi_exp_dat$SNP,outcomes = 7) Extracting the data for 27 SNPS (s) from 1 GWAS (s) Error: Cannot read token from alleged. RDS file: Mrbase.oautherror in readRDS(token_path): an error occurred while reading the link

selena

explodecomputer commented 6 years ago

Hey could you try this

chd_out_dat <- extract_outcome_data (snps = bmi_exp_dat$SNP, outcomes = 7, access_token=NULL)

From: china-aobai notifications@github.com Reply-To: MRCIEU/TwoSampleMR reply@reply.github.com Date: Thursday, 9 August 2018 at 10:14 To: MRCIEU/TwoSampleMR TwoSampleMR@noreply.github.com Cc: gibran hemani explodecomputer@gmail.com, Mention mention@noreply.github.com Subject: Re: [MRCIEU/TwoSampleMR] ao <- available_outcomes() is wrong? (#35)

@explodecomputer Dear Mr. Explodecomputer ,I really appreciate your previous help. Now I can get the exposure data. However, unfortunately, I have trouble getting the result data.Could you analyze it for me again?

chd_out_dat extract_outcome_data ( SNPS = bmi_exp_dat $SNP, outcomes = 7 +) Extracting the data for 27 SNPS (s) from 1 GWAS (s) Error: Cannot read token from alleged. RDS file: Mrbase.oautherror in readRDS(token_path): an error occurred while reading the link chd_out_dat < -extract_outcome_data (SNPS = bmi_exp_dat$SNP,outcomes = 7) Extracting the data for 27 SNPS (s) from 1 GWAS (s) Error: Cannot read token from alleged. RDS file: Mrbase.oautherror in readRDS(token_path): an error occurred while reading the link

selena

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

china-aobai commented 6 years ago

@explodecomputer Dear Sir: hallo!will running MR packages be affected if the downloaded binary is not in the same folder as the working environment you set up?

explodecomputer commented 6 years ago

Yes that’s right, the package looks for the mrbase.oauth file in the current working directory (getwd)

From: china-aobai notifications@github.com Reply-To: MRCIEU/TwoSampleMR reply@reply.github.com Date: Sunday, 12 August 2018 at 13:12 To: MRCIEU/TwoSampleMR TwoSampleMR@noreply.github.com Cc: gibran hemani explodecomputer@gmail.com, Mention mention@noreply.github.com Subject: Re: [MRCIEU/TwoSampleMR] ao <- available_outcomes() is wrong? (#35)

@explodecomputer Dear Sir: hallo!will running MR packages be affected if the downloaded binary is not in the same folder as the working environment you set up?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

china-aobai commented 6 years ago

@explodecomputer Dear Sir.Explodecompute, I really appreciate your careful guidance, and I feel your kindness. I have been offline for two days, and I failed to reply in time. Please forgive me.I successfully made the figure according to your suggestions, but I have a question: suppose my datas collected in other literatures can be analyzed without SE value?

chensiyusy commented 5 years ago

@explodecomputer Dear Sir. Explodecoputer, I really appreciate your previous solution. I am a researcher in Chongqing, China. I faced similar situation, but the previous solution does not work. It like this:

library(TwoSampleMR) Welcome to TwoSampleMR. [>] Full documentation: https://mrcieu.github.io/TwoSampleMR [>] Check news(package='TwoSampleMR') for bug fixes and updates [>] By generating access tokens to retrieve data from the MR-Base database you consent to having your email address logged on our servers. For info on how this is used see logging_info()

ao <- available_outcomes(access_token=NULL) Error in function (type, msg, asError = TRUE) : Operation timed out after 299772 milliseconds with 11273694 out of 14030341 bytes received devtools::install_github("MRCIEU/MRInstruments") Downloading GitHub repo MRCIEU/MRInstruments@master Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/MRCIEU/MRInstruments/tarball/master'

My friend in Shanghai said it does not work, either. My friend in Guangzhou, China said it works. Is there any way could we try to solve the authentication process?Thanks a lot!

china-aobai commented 5 years ago

亲爱的,你是在问我吗?这是我一年前问的问题了

At 2019-07-12 15:38:48, "chensiyusy" notifications@github.com wrote:

@explodecomputer Dear Sir. Explodecoputer, I really appreciate your previous solution. I am a researcher in Chongqing, China. I faced similar situation, but the previous solution does not work. It like this:

library(TwoSampleMR) Welcome to TwoSampleMR. [>] Full documentation: https://mrcieu.github.io/TwoSampleMR [>] Check news(package='TwoSampleMR') for bug fixes and updates [>] By generating access tokens to retrieve data from the MR-Base database you consent to having your email address logged on our servers. For info on how this is used see logging_info()

ao <- available_outcomes(access_token=NULL) Error in function (type, msg, asError = TRUE) : Operation timed out after 299772 milliseconds with 11273694 out of 14030341 bytes received devtools::install_github("MRCIEU/MRInstruments") Downloading GitHub repo MRCIEU/MRInstruments@master Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/MRCIEU/MRInstruments/tarball/master'

My friend in Shanghai said it does not work, either. My friend in Guangzhou, China said it works. Is there any way could we try to solve the authentication process?Thanks a lot!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

geneinmylife commented 5 years ago

两位,这是MR Base公共频道。 我是这个包的作者之一,两位有具体问题可以直接问我。

郑捷


From: chensiyusy notifications@github.com Sent: Saturday, July 13, 2019 6:09:19 PM To: MRCIEU/TwoSampleMR Cc: Subscribed Subject: Re: [MRCIEU/TwoSampleMR] ao <- available_outcomes() is wrong? (#35)

哈哈哈,你是男生还是女生啊。我是女生。so不要乱喊哈。最近我在研究这个MR的R包,碰到了一些疑惑。可否抱大腿,学习交流一下?谢谢!

陈思宇 邮箱:chensiyusy@126.com

签名由 网易邮箱大师 定制

On 07/14/2019 00:59, china-aobai wrote: 亲爱的,你是在问我吗?这是我一年前问的问题了

At 2019-07-12 15:38:48, "chensiyusy" notifications@github.com wrote:

@explodecomputer Dear Sir. Explodecoputer, I really appreciate your previous solution. I am a researcher in Chongqing, China. I faced similar situation, but the previous solution does not work. It like this:

library(TwoSampleMR) Welcome to TwoSampleMR. [>] Full documentation: https://mrcieu.github.io/TwoSampleMR [>] Check news(package='TwoSampleMR') for bug fixes and updates [>] By generating access tokens to retrieve data from the MR-Base database you consent to having your email address logged on our servers. For info on how this is used see logging_info()

ao <- available_outcomes(access_token=NULL) Error in function (type, msg, asError = TRUE) : Operation timed out after 299772 milliseconds with 11273694 out of 14030341 bytes received devtools::install_github("MRCIEU/MRInstruments") Downloading GitHub repo MRCIEU/MRInstruments@master Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/MRCIEU/MRInstruments/tarball/master'

My friend in Shanghai said it does not work, either. My friend in Guangzhou, China said it works. Is there any way could we try to solve the authentication process?Thanks a lot!

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

― You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/MRCIEU/TwoSampleMR/issues/35?email_source=notifications&email_token=ADH63V2L2ZY55YKB3S2TJQTP7ID37A5CNFSM4FN3FYOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3VVBY#issuecomment-511138439, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADH63VZR2XIKNCR3BOFHLNLP7ID37ANCNFSM4FN3FYOA.

chensiyusy commented 5 years ago

@geneinmylife Sorry for my bluntness to communicate by public channel. Thanks for your offering! I have several questions, the most significant one is about the Internet collection.

  1. When I did the authentication part, the results turn this:

library(TwoSampleMR) Welcome to TwoSampleMR. [>] Full documentation: https://mrcieu.github.io/TwoSampleMR [>] Check news(package='TwoSampleMR') for bug fixes and updates [>] By generating access tokens to retrieve data from the MR-Base database you consent to having your email address logged on our servers. For info on how this is used see logging_info()

ao <- available_outcomes(access_token=NULL) Error in function (type, msg, asError = TRUE) : Operation timed out after 299772 milliseconds with 11273694 out of 14030341 bytes received devtools::install_github("MRCIEU/MRInstruments") Downloading GitHub repo MRCIEU/MRInstruments@master Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/MRCIEU/MRInstruments/tarball/master'

In my office, I will get this bug. So did my friend in Shanghai. But when I use ao <- available_outcomes(access_token=NULL) in my home whose computer is not school internet, I could take advantage of it and enter the next step.

2.I think this R package must be related to the website MR base, it is true? I tried different VPN in order to use the website. Some VPN could help me search the exposure and manifest results, but they failed to show the final results of MR. Except for using if abroad, is there any solutions?

The second kind of questions backed to R package. I have see the examples of the mannual to input the exposure data. But I am not clear how could we get exposure data from public databases? Could we directly search data from R package's code? There is an example: bmi_gwas <- subset(gwas_catalog, grepl("Speliotes", Author) & Phenotype == "Body mass index") bmi_exp_dat <- format_data(bmi_gwas)

How could we know the author's name and know the GWAS data of this author is accessible?

Thanks!These are my current concerns. With further learning, I think I will have more puzzles. Hope I could enquiry you in the future.(双手合十表感谢)

VictoryTWOMR commented 5 years ago

@explodecomputer Dear Sir. Explodecoputer, I really appreciate your previous solution. I am a researcher in Chongqing, China. I faced similar situation, but the previous solution does not work. It like this:

library(TwoSampleMR) Welcome to TwoSampleMR. [>] Full documentation: https://mrcieu.github.io/TwoSampleMR [>] Check news(package='TwoSampleMR') for bug fixes and updates [>] By generating access tokens to retrieve data from the MR-Base database you consent to having your email address logged on our servers. For info on how this is used see logging_info()

ao <- available_outcomes(access_token=NULL) Error in function (type, msg, asError = TRUE) : Operation timed out after 299772 milliseconds with 11273694 out of 14030341 bytes received devtools::install_github("MRCIEU/MRInstruments") Downloading GitHub repo MRCIEU/MRInstruments@master Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/MRCIEU/MRInstruments/tarball/master'

My friend in Shanghai said it does not work, either. My friend in Guangzhou, China said it works. Is there any way could we try to solve the authentication process?Thanks a lot!

Have you ever solved your problem? I faced the same problem now.

chensiyusy commented 5 years ago

Sorry,not yet. I am waiting for the help and I almost forgot the query. If you solve it, please inform me. Thanks!

At 2019-08-26 15:52:56, "VictoryTWOMR" notifications@github.com wrote:

@explodecomputer Dear Sir. Explodecoputer, I really appreciate your previous solution. I am a researcher in Chongqing, China. I faced similar situation, but the previous solution does not work. It like this:

library(TwoSampleMR) Welcome to TwoSampleMR. [>] Full documentation: https://mrcieu.github.io/TwoSampleMR [>] Check news(package='TwoSampleMR') for bug fixes and updates [>] By generating access tokens to retrieve data from the MR-Base database you consent to having your email address logged on our servers. For info on how this is used see logging_info()

ao <- available_outcomes(access_token=NULL) Error in function (type, msg, asError = TRUE) : Operation timed out after 299772 milliseconds with 11273694 out of 14030341 bytes received devtools::install_github("MRCIEU/MRInstruments") Downloading GitHub repo MRCIEU/MRInstruments@master Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/MRCIEU/MRInstruments/tarball/master'

My friend in Shanghai said it does not work, either. My friend in Guangzhou, China said it works. Is there any way could we try to solve the authentication process?Thanks a lot!

Have you ever solved your problem? I faced the same problem now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

VictoryTWOMR commented 5 years ago

亲爱的,你是在问我吗?这是我一年前问的问题了 At 2019-07-12 15:38:48, "chensiyusy" notifications@github.com wrote: @explodecomputer Dear Sir. Explodecoputer, I really appreciate your previous solution. I am a researcher in Chongqing, China. I faced similar situation, but the previous solution does not work. It like this: library(TwoSampleMR) Welcome to TwoSampleMR. [>] Full documentation: https://mrcieu.github.io/TwoSampleMR [>] Check news(package='TwoSampleMR') for bug fixes and updates [>] By generating access tokens to retrieve data from the MR-Base database you consent to having your email address logged on our servers. For info on how this is used see logging_info() ao <- available_outcomes(access_token=NULL) Error in function (type, msg, asError = TRUE) : Operation timed out after 299772 milliseconds with 11273694 out of 14030341 bytes received devtools::install_github("MRCIEU/MRInstruments") Downloading GitHub repo MRCIEU/MRInstruments@master Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/MRCIEU/MRInstruments/tarball/master' My friend in Shanghai said it does not work, either. My friend in Guangzhou, China said it works. Is there any way could we try to solve the authentication process?Thanks a lot! — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

How did you solved the following issue when I ran "ao <- available_outcomes()": Cannot read token from alleged .rds file: mrbase.oauthError in readRDS(token_path): 读取链结时发生了错误

VictoryTWOMR commented 5 years ago

Sorry,not yet. I am waiting for the help and I almost forgot the query. If you solve it, please inform me. Thanks! At 2019-08-26 15:52:56, "VictoryTWOMR" notifications@github.com wrote: @explodecomputer Dear Sir. Explodecoputer, I really appreciate your previous solution. I am a researcher in Chongqing, China. I faced similar situation, but the previous solution does not work. It like this: library(TwoSampleMR) Welcome to TwoSampleMR. [>] Full documentation: https://mrcieu.github.io/TwoSampleMR [>] Check news(package='TwoSampleMR') for bug fixes and updates [>] By generating access tokens to retrieve data from the MR-Base database you consent to having your email address logged on our servers. For info on how this is used see logging_info() ao <- available_outcomes(access_token=NULL) Error in function (type, msg, asError = TRUE) : Operation timed out after 299772 milliseconds with 11273694 out of 14030341 bytes received devtools::install_github("MRCIEU/MRInstruments") Downloading GitHub repo MRCIEU/MRInstruments@master Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/MRCIEU/MRInstruments/tarball/master' My friend in Shanghai said it does not work, either. My friend in Guangzhou, China said it works. Is there any way could we try to solve the authentication process?Thanks a lot! Have you ever solved your problem? I faced the same problem now. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

How did you solved the following issue when I ran "ao <- available_outcomes()": Cannot read token from alleged .rds file: mrbase.oauthError in readRDS(token_path): 读取链结时发生了错误 By the way, can I get your personal email or others?

VictoryTWOMR commented 5 years ago

两位,这是MR Base公共频道。 我是这个包的作者之一,两位有具体问题可以直接问我。 郑捷 ____ From: chensiyusy notifications@github.com Sent: Saturday, July 13, 2019 6:09:19 PM To: MRCIEU/TwoSampleMR Cc: Subscribed Subject: Re: [MRCIEU/TwoSampleMR] ao <- available_outcomes() is wrong? (#35) 哈哈哈,你是男生还是女生啊。我是女生。so不要乱喊哈。最近我在研究这个MR的R包,碰到了一些疑惑。可否抱大腿,学习交流一下?谢谢! | | 陈思宇 邮箱:chensiyusy@126.com | 签名由 网易邮箱大师 定制 On 07/14/2019 00:59, china-aobai wrote: 亲爱的,你是在问我吗?这是我一年前问的问题了 At 2019-07-12 15:38:48, "chensiyusy" notifications@github.com wrote: @explodecomputer Dear Sir. Explodecoputer, I really appreciate your previous solution. I am a researcher in Chongqing, China. I faced similar situation, but the previous solution does not work. It like this: library(TwoSampleMR) Welcome to TwoSampleMR. [>] Full documentation: https://mrcieu.github.io/TwoSampleMR [>] Check news(package='TwoSampleMR') for bug fixes and updates [>] By generating access tokens to retrieve data from the MR-Base database you consent to having your email address logged on our servers. For info on how this is used see logging_info() ao <- available_outcomes(access_token=NULL) Error in function (type, msg, asError = TRUE) : Operation timed out after 299772 milliseconds with 11273694 out of 14030341 bytes received devtools::install_github("MRCIEU/MRInstruments") Downloading GitHub repo MRCIEU/MRInstruments@master Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/MRCIEU/MRInstruments/tarball/master' My friend in Shanghai said it does not work, either. My friend in Guangzhou, China said it works. Is there any way could we try to solve the authentication process?Thanks a lot! ― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread. ― You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. ― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<#35?email_source=notifications&email_token=ADH63V2L2ZY55YKB3S2TJQTP7ID37A5CNFSM4FN3FYOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3VVBY#issuecomment-511138439>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADH63VZR2XIKNCR3BOFHLNLP7ID37ANCNFSM4FN3FYOA.

Can you give us some help on the issues about using this TwoSampleMR?

yemaozi285 commented 3 years ago

两位,这是MR Base公共频道。 我是这个包的作者之一,两位有具体问题可以直接问我。 郑捷 ____ From: chensiyusy notifications@github.com Sent: Saturday, July 13, 2019 6:09:19 PM To: MRCIEU/TwoSampleMR Cc: Subscribed Subject: Re: [MRCIEU/TwoSampleMR] ao <- available_outcomes() is wrong? (#35) 哈哈哈,你是男生还是女生啊。我是女生。so不要乱喊哈。最近我在研究这个MR的R包,碰到了一些疑惑。可否抱大腿,学习交流一下?谢谢! | | 陈思宇 邮箱:chensiyusy@126.com | 签名由 网易邮箱大师 定制 On 07/14/2019 00:59, china-aobai wrote: 亲爱的,你是在问我吗?这是我一年前问的问题了 At 2019-07-12 15:38:48, "chensiyusy" notifications@github.com wrote: @explodecomputer Dear Sir. Explodecoputer, I really appreciate your previous solution. I am a researcher in Chongqing, China. I faced similar situation, but the previous solution does not work. It like this: library(TwoSampleMR) Welcome to TwoSampleMR. [>] Full documentation: https://mrcieu.github.io/TwoSampleMR [>] Check news(package='TwoSampleMR') for bug fixes and updates [>] By generating access tokens to retrieve data from the MR-Base database you consent to having your email address logged on our servers. For info on how this is used see logging_info() ao <- available_outcomes(access_token=NULL) Error in function (type, msg, asError = TRUE) : Operation timed out after 299772 milliseconds with 11273694 out of 14030341 bytes received devtools::install_github("MRCIEU/MRInstruments") Downloading GitHub repo MRCIEU/MRInstruments@master Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/MRCIEU/MRInstruments/tarball/master' My friend in Shanghai said it does not work, either. My friend in Guangzhou, China said it works. Is there any way could we try to solve the authentication process?Thanks a lot! ― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread. ― You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. ― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<#35?email_source=notifications&email_token=ADH63V2L2ZY55YKB3S2TJQTP7ID37A5CNFSM4FN3FYOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3VVBY#issuecomment-511138439>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADH63VZR2XIKNCR3BOFHLNLP7ID37ANCNFSM4FN3FYOA.

dear professor, some problems occurred when l running the MR-Base packages in Guangzhou China. the code as follow:

API: public: http://gwas-api.mrcieu.ac.uk/ Using access token. For info on how this is used see logging_info() i 2021-01-05 22:21:23 > Setting client.id from options(googleAuthR.client_id) httpuv not installed, defaulting to out-of-band authentication Enter authorization code: error: Could not authenticate via any gargle cred function

l would appreciate it if you solve my problem

yemaozi285 commented 3 years ago

and the second question:

ao <- available_outcomes(access_token=NULL) Error in api_query("gwasinfo", access_token = access_token) : The query to MR-Base exceeded 300 seconds and timed out. Please simplify the query

hope someone to help me sincerely!