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

Warning ors_api_key #63

Open
HeidiSeibold opened this issue Feb 26, 2020 · 2 comments
Open

Warning ors_api_key #63

HeidiSeibold opened this issue Feb 26, 2020 · 2 comments
Assignees
Labels
💡 enhancement New feature or request

Comments

@HeidiSeibold
Copy link
Contributor

I tried following the instructions in the vignette to save my key, but I get a warning.

openrouteservice::ors_api_key("mykey")
#> Registered S3 method overwritten by 'httr':
#>   method                 from
#>   as.character.form_file crul
#> Warning in default_backend_auto(): Selecting 'env' backend. Secrets are
#> stored in environment variables

My sessionInfo()

R version 3.6.2 (2019-12-12)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=de_DE.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=de_DE.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=de_DE.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
[1] openrouteservice_0.4.0

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.3         RColorBrewer_1.1-2 later_0.8.0        compiler_3.6.2    
 [5] prettyunits_1.0.2  remotes_2.0.4      tools_3.6.2        digest_0.6.25     
 [9] pkgbuild_1.0.3     evaluate_0.13      jsonlite_1.6.1     rlang_0.4.4       
[13] reprex_0.2.1       shiny_1.3.2        cli_2.0.1          rstudioapi_0.11   
[17] crosstalk_1.0.0    crul_0.7.4         curl_4.3           yaml_2.2.0        
[21] xfun_0.6           knitr_1.22         xml2_1.2.0         withr_2.1.2       
[25] httr_1.4.0         fs_1.3.0           htmlwidgets_1.3    geojsonlint_0.4.0 
[29] rprojroot_1.3-2    leaflet_2.0.3      glue_1.3.1         httpcode_0.2.0    
[33] jsonvalidate_1.1.0 geojsonsf_1.3.0    R6_2.4.1           processx_3.3.0    
[37] fansi_0.4.1        rmarkdown_1.12     clipr_0.6.0        whisker_0.3-2     
[41] callr_3.2.0        magrittr_1.5       promises_1.0.1     backports_1.1.5   
[45] ps_1.3.0           htmltools_0.3.6    assertthat_0.2.1   xtable_1.8-4      
[49] mime_0.9           httpuv_1.5.1       keyring_1.1.0      V8_2.2            
[53] crayon_1.3.4   
@aoles
Copy link
Member

aoles commented Feb 26, 2020

Thanks for your feedback!

The warning is issued by the keyring package which is used to store the API secret. Apparently the package finds no backed on your system for storing it permanently so it falls back to transient environment variable storage.

I'm well aware of the problems with keyring, and I'm sorry for your inconvenience. The issue should be resolved by #34. I will bump its priority so sit tight.

Cheers,
Andrzej

@aoles aoles self-assigned this Feb 26, 2020
@aoles aoles added the 💡 enhancement New feature or request label Feb 26, 2020
@HeidiSeibold
Copy link
Contributor Author

Thanks @aoles 🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants