insightsengineering / teal.data

Data model for teal applications
https://insightsengineering.github.io/teal.data/
Other
9 stars 8 forks source link

Installation warnings: `'package:stats' may not be available when loading` #351

Open m7pr opened 2 weeks ago

m7pr commented 2 weeks ago

On windows:

On installation you can see

** byte-compile and prepare package for lazy loading
Warning in lazyLoadDBinsertValue(data, datafile, ascii, compress, envhook) :
  'package:stats' may not be available when loading

sessionInfo()

R version 4.4.0 (2024-04-24 ucrt) -- "Puppy Cup"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64

Similar thread on Stack Overflow suggests it's an RStudio bug, that supposed to be fixed 4 years ago https://stackoverflow.com/questions/27623901/r-warning-packagestats-may-not-be-available-when-loading

m7pr commented 2 weeks ago

I see that during devtools::install() @chlebowa mentions he sees that during remotes::install_github("insightsengineering/teal.data")

chlebowa commented 2 weeks ago

Correction, I see it when running install_local, not install_github. Noticed under Windows 10 and VSCode.

llrs-roche commented 2 weeks ago

I cannot reproduce this on a fresh RStudio session

 devtools::install_local(force = TRUE)
Skipping 1 packages ahead of CRAN: teal.code
── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file 'C:\Users\sanchosl\AppData\Local\Temp\RtmpKcNGYe\file66dc6c1e4880\teal.data/DESCRIPTION' (504ms)
─  preparing 'teal.data': (600ms)
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts (3s)
─  checking for empty or unneeded directories
   Removed empty directory 'teal.data/tests/testthat/_snaps'
─  building 'teal.data_0.6.0.9020.tar.gz'

Installing package into 'C:/Users/sanchosl/AppData/Local/R/win-library/4.4'
(as 'lib' is unspecified)
* installing *source* package 'teal.data' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (teal.data)

Rstudio:

RStudio 2024.09.0+375 "Cranberry Hibiscus" Release (c8fc7aee6dc218d5687553f9041c6b1e5ea268ff, 2024-09-16) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.09.0+375 Chrome/124.0.6367.243 Electron/30.4.0 Safari/537.36, Quarto 1.5.57

R session:

R version 4.4.1 (2024-06-14 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 22631)