Getting an error on dp_connect when ~.aws/config is present, regardless of whether default profile is specified. When aws config file is not present the error is resolved. Setting AWS_DEFAULT_PROFILE or AWS_PROFILE to relevant profile also does not solve the issue.
Error in vapply(sub_content, function(x) grepl("^[ ]+", x[1]), logical(1)) :
values must be length 1,
but FUN(X[[1]]) result is length 0
traceback:
10: vapply(sub_content, function(x) grepl("^[ ]+", x[1]), logical(1))
9: which(!vapply(sub_content, function(x) grepl("^[ ]+", x[1]),
logical(1)))
8: nested_ini_content(sub_content, found_nested_content)
7: read_ini(config_path)
6: check_config_file_sts_regional_endpoint(profile)
5: .optional_config_parameter[[cfg_param]](profile)
4: update_optional_config_parameter(cfgs, cfgs$credentials$profile)
3: set_config(svc, config)
2: paws.storage::s3(config = config)
1: pins::board_s3(bucket = config$board_params$bucket_name, region = config$board_params$region,
access_key = config$creds$key, secret_access_key = config$creds$secret,
versioned = T)
session info: (also tried paws.storage v0.4.0 and pins 1.2.0)
R version 4.2.2 (2022-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Ventura 13.6.4
Matrix products: default
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 datasets utils methods base
other attached packages:
[1] keyring_1.3.1 dpdeploy_0.1.0 dpbuild_0.1.0 dpi_0.1.0 daapr_0.1.0 pins_1.3.0
loaded via a namespace (and not attached):
[1] tidyselect_1.2.0 xfun_0.40 httr2_0.2.2 paws.storage_0.5.0 purrr_1.0.1
[6] vctrs_0.6.3 generics_0.1.3 htmltools_0.5.4 yaml_2.3.7 base64enc_0.1-3
[11] utf8_1.2.3 rlang_1.1.1 pillar_1.8.1 glue_1.6.2 withr_2.5.0
[16] rappdirs_0.3.3 lifecycle_1.0.3 targets_1.3.0 evaluate_0.20 codetools_0.2-18
[21] knitr_1.42 fastmap_1.1.1 callr_3.7.3 ps_1.7.5 curl_5.0.0
[26] fansi_1.0.4 Rcpp_1.0.10 renv_1.0.3 backports_1.4.1 pkgload_1.3.3
[31] jsonlite_1.8.4 fs_1.6.1 digest_0.6.31 processx_3.8.2 gh_1.4.0
[36] dplyr_1.1.0 cli_3.6.0 tools_4.2.2 magrittr_2.0.3 base64url_1.4
[41] tibble_3.2.1 paws.common_0.6.1 crayon_1.5.2 aws.signature_0.6.0 pkgconfig_2.0.3
[46] ellipsis_0.3.2 data.table_1.14.8 xml2_1.3.3 timechange_0.2.0 lubridate_1.9.2
[51] assertthat_0.2.1 rmarkdown_2.20 httr_1.4.5 rstudioapi_0.14 R6_2.5.1
[56] igraph_1.5.1 compiler_4.2.2 git2r_0.31.0
Getting an error on
dp_connectwhen~.aws/configis present, regardless of whether default profile is specified. When aws config file is not present the error is resolved. SettingAWS_DEFAULT_PROFILEorAWS_PROFILEto relevant profile also does not solve the issue.traceback:
session info: (also tried paws.storage v0.4.0 and pins 1.2.0)