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

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

Open
m7pr opened this issue Nov 11, 2024 · 3 comments
Open

Comments

@m7pr
Copy link
Contributor

m7pr commented Nov 11, 2024

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
Copy link
Contributor Author

m7pr commented Nov 11, 2024

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

@chlebowa
Copy link
Contributor

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

@llrs-roche
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants