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

document_and_reload() returns error loading package[BUG] #1106

Closed
jonahcullen opened this issue Sep 26, 2023 · 4 comments
Closed

document_and_reload() returns error loading package[BUG] #1106

jonahcullen opened this issue Sep 26, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@jonahcullen
Copy link

Hello, I am a new user of {golem} so apologies for the likely simple issue.

Describe the bug
Starting from an empty project (and following the instructions provided), running golem::run_dev() returns the following error which I tracked down to golem::document_and_reload()

ℹ Loading AIMEE
Writing NAMESPACE
Writing NAMESPACE
Error in pkgload::load_all(path = path, reset = reset, compile = compile,  : 
  unused argument (attach = attach)
── Error loading your package ──────────────────────────────────────

To Reproduce
Steps to reproduce the behavior:

  1. Create new {golem} project from RStudio
  2. Setup 01_start.R (e.g. golem::fill_desc(), golem::set_golem_options(), golem::install_dev_deps())
  3. golem::run_dev()

session info

! package     * version    date (UTC) lib source
 R AIMEE       * 0.0.0.9000 <NA>       [?] <NA>
   askpass       1.1        2019-01-13 [1] CRAN (R 4.0.2)
   attempt       0.3.1      2020-05-03 [1] CRAN (R 4.0.2)
   bslib         0.3.1      2021-10-06 [1] CRAN (R 4.0.2)
   cachem        1.0.6      2021-08-19 [1] CRAN (R 4.0.2)
   callr         3.7.0      2021-04-20 [1] CRAN (R 4.0.2)
   cli           3.6.1      2023-03-23 [1] CRAN (R 4.0.3)
   clipr         0.7.1      2020-10-08 [1] CRAN (R 4.0.2)
   commonmark    1.8.0      2022-03-09 [1] CRAN (R 4.0.5)
   config        0.3.2      2023-08-30 [1] CRAN (R 4.0.3)
   crayon        1.5.1      2022-03-26 [1] CRAN (R 4.0.5)
   credentials   1.3.1      2021-07-25 [1] CRAN (R 4.0.2)
   desc          1.4.0      2021-09-28 [1] CRAN (R 4.0.2)
   devtools      2.4.2      2021-06-07 [1] CRAN (R 4.0.2)
   digest        0.6.29     2021-12-01 [1] CRAN (R 4.0.3)
   DT            0.20       2021-11-15 [1] CRAN (R 4.0.2)
   ellipsis      0.3.2      2021-04-29 [1] CRAN (R 4.0.2)
   evaluate      0.15       2022-02-18 [1] CRAN (R 4.0.5)
   fansi         1.0.4      2023-01-22 [1] CRAN (R 4.0.3)
   fastmap       1.1.1      2023-02-24 [1] CRAN (R 4.0.3)
   fs            1.5.2      2021-12-08 [1] CRAN (R 4.0.2)
   gert          1.4.3      2021-11-10 [1] CRAN (R 4.0.2)
   glue          1.6.2      2022-02-24 [1] CRAN (R 4.0.5)
   golem         0.4.1      2023-06-05 [1] CRAN (R 4.0.3)
   here          1.0.1      2020-12-13 [1] CRAN (R 4.0.2)
   htmltools     0.5.6      2023-08-10 [1] CRAN (R 4.0.3)
   htmlwidgets   1.5.4      2021-09-08 [1] CRAN (R 4.0.2)
   httpuv        1.6.3      2021-09-09 [1] CRAN (R 4.0.2)
   hunspell      3.0.1      2020-12-09 [1] CRAN (R 4.0.2)
   jquerylib     0.1.4      2021-04-26 [1] CRAN (R 4.0.2)
   jsonlite      1.8.0      2022-02-22 [1] CRAN (R 4.0.5)
   knitr         1.41       2022-11-18 [1] CRAN (R 4.0.3)
   later         1.3.0      2021-08-18 [1] CRAN (R 4.0.2)
   lifecycle     1.0.3      2022-10-07 [1] CRAN (R 4.0.3)
   magrittr      2.0.3      2022-03-30 [1] CRAN (R 4.0.5)
   memoise       2.0.0      2021-01-26 [1] CRAN (R 4.0.2)
   mime          0.12       2021-09-28 [1] CRAN (R 4.0.2)
   openssl       2.0.0      2022-03-02 [1] CRAN (R 4.0.5)
   pillar        1.9.0      2023-03-22 [1] CRAN (R 4.0.3)
   pkgbuild      1.2.0      2020-12-15 [1] CRAN (R 4.0.2)
   pkgconfig     2.0.3      2019-09-22 [1] CRAN (R 4.0.2)
   pkgload       1.2.3      2021-10-13 [1] CRAN (R 4.0.2)
   prettyunits   1.1.1      2020-01-24 [1] CRAN (R 4.0.2)
   processx      3.5.2      2021-04-30 [1] CRAN (R 4.0.2)
   promises      1.2.0.1    2021-02-11 [1] CRAN (R 4.0.2)
   ps            1.6.0      2021-02-28 [1] CRAN (R 4.0.2)
   purrr         0.3.4      2020-04-17 [1] CRAN (R 4.0.2)
   R6            2.5.1      2021-08-19 [1] CRAN (R 4.0.2)
   Rcpp          1.0.7      2021-07-07 [1] CRAN (R 4.0.2)
   remotes       2.4.1      2021-09-29 [1] CRAN (R 4.0.2)
   rlang         1.1.1      2023-04-28 [1] CRAN (R 4.0.3)
   rmarkdown     2.11       2021-09-14 [1] CRAN (R 4.0.2)
   roxygen2      7.1.2      2021-09-08 [1] CRAN (R 4.0.2)
   rprojroot     2.0.2      2020-11-15 [1] CRAN (R 4.0.2)
   rsconnect     1.1.0      2023-09-05 [1] CRAN (R 4.0.3)
   rstudioapi    0.13       2020-11-12 [1] CRAN (R 4.0.2)
   sass          0.4.1      2022-03-23 [1] CRAN (R 4.0.5)
   sessioninfo   1.2.1      2021-11-02 [1] CRAN (R 4.0.2)
   shiny       * 1.7.5      2023-08-12 [1] CRAN (R 4.0.3)
   spelling      2.2.1      2023-03-22 [1] CRAN (R 4.0.3)
   stringi       1.7.6      2021-11-29 [1] CRAN (R 4.0.3)
   stringr       1.4.0      2019-02-10 [1] CRAN (R 4.0.2)
   sys           3.4        2020-07-23 [1] CRAN (R 4.0.2)
   testthat      3.1.0      2021-10-04 [1] CRAN (R 4.0.2)
   tibble        3.2.1      2023-03-20 [1] CRAN (R 4.0.3)
   usethis       2.1.3      2021-10-27 [1] CRAN (R 4.0.2)
   utf8          1.2.3      2023-01-31 [1] CRAN (R 4.0.3)
   vctrs         0.6.2      2023-04-19 [1] CRAN (R 4.0.3)
   whisker       0.4        2019-08-28 [1] CRAN (R 4.0.2)
   withr         2.5.0      2022-03-03 [1] CRAN (R 4.0.5)
   xfun          0.35       2022-11-16 [1] CRAN (R 4.0.3)
   xml2          1.3.2      2020-04-23 [1] CRAN (R 4.0.2)
   xtable        1.8-4      2019-04-21 [1] CRAN (R 4.0.2)
   yaml          2.3.7      2023-01-23 [1] CRAN (R 4.0.3)

 [1] /Library/Frameworks/R.framework/Versions/4.0/Resources/library

 R ── Package was removed from disk.
@jonahcullen jonahcullen added the bug Something isn't working label Sep 26, 2023
@ColinFay
Copy link
Member

Hey,

Can you try updating pkgload?

Cheers,
Colin

@jonahcullen
Copy link
Author

Oh my I swear I did that but apparently it failed. Upon re-updating, it worked and fixed the problem!

Thank you very much for your prompt response!

As a quick follow-up, why does NAMESPACE get written to twice as below

ℹ Loading AIMEE
Writing NAMESPACE
Writing NAMESPACE
ℹ Loading AIMEE
Loading required package: shiny

Thanks again!

@ArthurData
Copy link
Member

ArthurData commented Dec 15, 2023

Hello @jonahcullen,
Does this double message still exist?
Maybe, NAMESPACE should have been empty on first run.

@ColinFay
Copy link
Member

ColinFay commented Aug 8, 2024

Give that this BUG has been fixed via reinstalling pkgload, I'm closing this issue.

Feel free to comment if you have this trouble again

@ColinFay ColinFay closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants