MRCIEU / ieugwasr

R interface to the IEU GWAS database API
https://mrcieu.github.io/ieugwasr/
Other
73 stars 23 forks source link

`ieugwasr::check_access_token()`: #28

Open bschilder opened 2 years ago

bschilder commented 2 years ago

Hello,

I'm running ieugwasr::check_access_token() within an Rstudio container on our HPC. Can't seem to get the proper credentials. But this seems to work fine on my local desktop.

Command

ieugwasr::check_access_token()

This window then pops up in my browser:

Screenshot 2022-10-28 at 12 56 04

Console output

API: public: http://gwas-api.mrcieu.ac.uk/ Using access token. For info on how this is used see logging_info()
--
Enter authorization code:  

Session info

``` R version 4.2.1 (2022-06-23) Platform: x86_64-conda-linux-gnu (64-bit) Running under: Red Hat Enterprise Linux 8.5 (Ootpa) Matrix products: default BLAS/LAPACK: /rds/general/user/bms20/home/anaconda3/envs/bioc/lib/libopenblasp-r0.3.21.so locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C LC_TIME=en_GB.UTF-8 [4] LC_COLLATE=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8 [7] LC_PAPER=en_GB.UTF-8 LC_NAME=C LC_ADDRESS=C [10] LC_TELEPHONE=C LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] googledrive_2.0.0 colorspace_2.0-3 rjson_0.2.21 [4] ellipsis_0.3.2 rprojroot_2.0.3 XVector_0.37.1 [7] GenomicRanges_1.49.1 fs_1.5.2 rstudioapi_0.14 [10] remotes_2.4.2 getopt_1.20.3 DT_0.25 [13] bit64_4.0.5 AnnotationDbi_1.59.1 fansi_1.0.3 [16] xml2_1.3.3 codetools_0.2-18 R.methodsS3_1.8.2 [19] cachem_1.0.6 ieugwasr_0.1.5 jsonlite_1.8.0 [22] Rsamtools_2.13.4 dbplyr_2.2.1 png_0.1-7 [25] R.oo_1.25.0 echoconda_0.99.7 echodata_0.99.12 [28] BiocManager_1.30.18 readr_2.1.2 compiler_4.2.1 [31] httr_1.4.4 basilisk_1.8.1 assertthat_0.2.1 [34] Matrix_1.5-1 fastmap_1.1.0 gargle_1.2.1 [37] cli_3.4.0 htmltools_0.5.3 prettyunits_1.1.1 [40] tools_4.2.1 gtable_0.3.1 glue_1.6.2 [43] GenomeInfoDbData_1.2.8 dplyr_1.0.10 rappdirs_0.3.3 [46] Rcpp_1.0.9 Biobase_2.57.1 vctrs_0.4.1 [49] Biostrings_2.65.3 echotabix_0.99.8 rtracklayer_1.57.0 [52] optparse_1.7.3 stringr_1.4.1 ps_1.7.1 [55] MungeSumstats_1.5.13 openxlsx_4.2.5 lifecycle_1.0.2 [58] restfulr_0.0.15 XML_3.99-0.9 googleAuthR_2.0.0 [61] zlibbioc_1.43.0 scales_1.2.1 basilisk.utils_1.8.0 [64] BSgenome_1.65.2 VariantAnnotation_1.42.1 hms_1.1.2 [67] MatrixGenerics_1.9.1 parallel_4.2.1 SummarizedExperiment_1.27.2 [70] yaml_2.3.5 curl_4.3.2 memoise_2.0.1 [73] reticulate_1.26 ggplot2_3.3.6 biomaRt_2.53.2 [76] stringi_1.7.8 RSQLite_2.2.17 S4Vectors_0.35.1 [79] BiocIO_1.7.1 GenomicFeatures_1.49.6 BiocGenerics_0.43.1 [82] filelock_1.0.2 pkgbuild_1.3.1 zip_2.2.1 [85] BiocParallel_1.31.12 GenomeInfoDb_1.33.7 rlang_1.0.5 [88] pkgconfig_2.0.3 matrixStats_0.62.0 bitops_1.0-7 [91] lattice_0.20-45 purrr_0.3.4 GenomicAlignments_1.33.1 [94] htmlwidgets_1.5.4 processx_3.7.0 bit_4.0.4 [97] tidyselect_1.1.2 magrittr_2.0.3 R6_2.5.1 [100] IRanges_2.31.2 generics_0.1.3 piggyback_0.1.4 [103] DelayedArray_0.23.1 DBI_1.1.3 withr_2.5.0 [106] pillar_1.8.1 KEGGREST_1.37.3 RCurl_1.98-1.8 [109] tibble_3.1.8 dir.expiry_1.4.0 crayon_1.5.1 [112] utf8_1.2.2 BiocFileCache_2.5.0 tzdb_0.3.0 [115] progress_1.2.2 grid_4.2.1 data.table_1.14.2 [118] callr_3.7.2 blob_1.2.3 digest_0.6.29 [121] tidyr_1.2.1 R.utils_2.12.0 openssl_2.0.3 [124] stats4_4.2.1 munsell_0.5.0 askpass_1.1 ```
ukuvainik commented 11 months ago

same here, laptop works but Rstudio on a remote computer accessed via browser throws the same error :/

GuohuaZhu commented 6 months ago

same here. How to solve it? The package 'ieugwasr' can't worked on the remote computer.

GuohuaZhu commented 6 months ago

Solved it. Just deleted the directory named "ieugwasr_oauth" in your work directory. Then it worked.

sbaiusai commented 4 months ago

解决了。刚刚删除了工作目录中名为“ieugwasr_oauth”的目录。然后它奏效了。

How did you solve it? Can you tell me in detail.