eth-mds / ricu

🏥 ICU data with R 🏥
https://eth-mds.github.io/ricu/
GNU General Public License v3.0
33 stars 11 forks source link

! Access to the requested resource was denied. #28

Closed zzwzz1998 closed 6 months ago

zzwzz1998 commented 1 year ago

I have obtained the relevant access rights and entered the correct account password, but still cannot access the data

''' Data for miiv is missing Setup now (Y/n)? Y username: XXXXX password: XXXXX Error in stop_ricu(): ! Access to the requested resource was denied. Please set up an account at https://physionet.org/ and apply for data access. Run rlang::last_error() to see where the error occurred. '''

zzwzz1998 commented 1 year ago

sessionInfo() R version 4.2.2 (2022-10-31) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Ventura 13.0

Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] caret_6.0-93 lattice_0.20-45 ggplot2_3.4.0 dplyr_1.0.10 fstcore_0.9.14 ricu_0.5.4

loaded via a namespace (and not attached): [1] Rcpp_1.0.10 lubridate_1.9.1 listenv_0.9.0 class_7.3-20 assertthat_0.2.1 digest_0.6.31
[7] ipred_0.9-13 foreach_1.5.2 utf8_1.2.2 parallelly_1.34.0 R6_2.5.1 plyr_1.8.8
[13] backports_1.4.1 stats4_4.2.2 hardhat_1.2.0 pillar_1.8.1 rlang_1.0.6 curl_5.0.0
[19] prt_0.1.5 data.table_1.14.6 eicu.demo_1.0.1 rpart_4.1.19 Matrix_1.5-1 splines_4.2.2
[25] stringr_1.5.0 gower_1.0.1 readr_2.1.3 bit_4.0.5 munsell_0.5.0 compiler_4.2.2
[31] pkgconfig_2.0.3 globals_0.16.2 nnet_7.3-18 tidyselect_1.2.0 tibble_3.1.8 prodlim_2019.11.13
[37] codetools_0.2-18 fansi_1.0.4 future_1.30.0 crayon_1.5.2 tzdb_0.3.0 withr_2.5.0
[43] ModelMetrics_1.2.2.2 MASS_7.3-58.1 recipes_1.0.4 grid_4.2.2 nlme_3.1-160 jsonlite_1.8.4
[49] gtable_0.3.1 lifecycle_1.0.3 magrittr_2.0.3 pROC_1.18.0 scales_1.2.1 stringi_1.7.12
[55] future.apply_1.10.0 cli_3.6.0 vroom_1.6.1 reshape2_1.4.4 remotes_2.4.2 timeDate_4022.108
[61] ellipsis_0.3.2 generics_0.1.3 vctrs_0.5.2 fst_0.9.8 lava_1.7.1 iterators_1.0.14
[67] tools_4.2.2 bit64_4.0.5 glue_1.6.2 purrr_1.0.1 mimic.demo_1.0.1 hms_1.1.2
[73] parallel_4.2.2 survival_3.4-0 timechange_0.2.0 colorspace_2.1-0

zzwzz1998 commented 1 year ago

rlang::last_error() <error/physionet_login> Error in stop_ricu(): ! Access to the requested resource was denied. Please set up an account at https://physionet.org/ and apply for data access.

Backtrace:

  1. base::as.data.frame(miiv$admissions)
  2. ricu (local) <fn>()
  3. ricu:::setup_src_data.src_cfg(src, data_dir = dir)
  4. ricu:::download_src.src_cfg(x, data_dir, tables = todo, force = force)
  5. ricu:::download_check_data(...)
  6. ricu:::get_sha256(url, user, pass)
  7. ricu:::download_pysionet_file(...)
  8. ricu:::stop_ricu(...) Run rlang::last_trace() to see the full context.
junxinlu commented 1 year ago

Hello, I also faced this problem, please tell me how you solved it

junxinlu commented 1 year ago

@zzwzz1998

mlondschien commented 1 year ago

ricu has the version of miiv hardcoded here:

https://github.com/eth-mds/ricu/blob/f6a7c3687e00730336c2d9986891673c4c74eea0/inst/extdata/config/data-sources.R#L1458

You thus need to sign the user agreement for that particular version here.

Shaydund commented 1 year ago

ricu has the version of miiv hardcoded here:

https://github.com/eth-mds/ricu/blob/f6a7c3687e00730336c2d9986891673c4c74eea0/inst/extdata/config/data-sources.R#L1458

You thus need to sign the user agreement for that particular version here.

I try to run the code. (And i have signed the user agreement within physionet.) I get problems in the end:

pkg_dir <- rprojroot::find_root(rprojroot::is_r_package) Error: No root directory found in C:/Users/shayd/OneDrive/Escritorio or its parent directories. Root criterion: contains a file "DESCRIPTION" with contents matching "^Package: "

Do you know to solve it?

Thanks in advance.

dplecko commented 6 months ago

MIMIC-IV (miiv in ricu) was bumped to v2.2 in ricu 0.6.0. Please try re-running the setup, and if problems persist, feel free to open a new issue.