-
Couldn't load subscription status.
- Fork 19
Description
Description
I'm trying to authenticate with the rtoot package in VS Code on WSL Ubuntu. After loading the package and running auth_setup(), I get the following error:
Error: Function askForPassword not found in RStudio
This error seems to be due to askForPassword() being specific to RStudio, which isn’t available in my setup.
Steps to Reproduce
- Open R in VS Code on WSL Ubuntu.
- Load rtoot package:
library(rtoot) - Run
auth_setup()to attempt authentication.
Expected Behavior
I expect to be prompted for a token or authentication details, even when not in RStudio.
Observed Behavior
The error Error: Function askForPassword not found in RStudio appears, halting the authentication process.
Session Info
To help with debugging, here is my session information:
R version 4.4.1 (2024-06-14)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.1 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.12.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0
locale:
[1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8 LC_COLLATE=C.UTF-8
[5] LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8 LC_PAPER=C.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C
time zone: Europe/Berlin
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rtoot_0.3.4
loaded via a namespace (and not attached):
[1] compiler_4.4.1 cli_3.6.3 jsonlite_1.8.9 rlang_1.1.4
Could there be an alternative way to securely prompt for passwords outside of RStudio, perhaps using the askpass package or allowing direct environment variable input?
Thank you for your help!