Skip to content

getSymbols cannot be quietened #399

Description

@eddelbuettel

Description

getSymbols in the new (and awesome!) 'intraday mode' is noisy about NAs.

Expected behavior

No warning as we said warnings=FALSE

Minimal, reproducible example

> suppressMessages(QQQ <- getSymbols("QQQ", from=Sys.Date()-7, periodicity="1 minutes", warnings=FALSE, verbose=FALSE))
Warning message:
QQQ contains missing values. Some functions will not work if objects contain missing values in the middle of the series. Consider using na.omit(), na.approx(), na.fill(), etc to remove or replace them. 
> 

Session Info

> sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 23.04

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

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

time zone: America/Chicago
tzcode source: system (glibc)

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

other attached packages:
[1] quantmod_0.4.24.1 TTR_0.24.3        xts_0.13.1        zoo_1.8-12       

loaded via a namespace (and not attached):
 [1] desc_1.4.2        R6_2.5.1          lattice_0.21-8    remotes_2.4.2.1   parallel_4.3.1    ps_1.7.5          cli_3.6.1         fortunes_1.5-4    processx_3.8.2    callr_3.7.3      
[11] grid_4.3.1        compiler_4.3.1    prettyunits_1.1.1 rprojroot_2.0.3   tools_4.3.1       pkgbuild_1.4.2    curl_5.0.1        jsonlite_1.8.7    crayon_1.5.2      colorout_1.2-2   
> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions