./devel/R-pkgload, Simulate package installation and attach

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.4.0, Package name: R-pkgload-1.4.0, Maintainer: pkgsrc-users

Simulates the process of installing a package and then attaching it.
This is a key part of the 'devtools' package as it allows you to
rapidly iterate while developing a package.


Required to run:
[math/R] [devel/R-rlang] [devel/R-withr] [math/R-rstudioapi] [devel/R-rprojroot] [devel/R-desc] [devel/R-pkgbuild]

Required to build:
[pkgtools/cwrappers]

Master sites: (Expand)


Version history: (Expand)


CVS history: (Expand)


   2024-10-20 00:41:03 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(devel/R-pkgload) Updated 1.3.4. to 1.4.0

# pkgload 1.4.0

* The `reset` argment of `load_all()` is no longer supported because preserving
  the namespace requires unlocking its environment, which is no longer possible
  in recent versions of R. It should no longer be necessary as the performance
  issues caused by resetting the namespace were resolved a while ago.

* New experimental feature for generating a `compile_commands.json` file after
  each `load_all()`. This file is used by LSP servers such as clangd to provide
  intellisense features in your native files. To enable it, add this directive
  to your `DESCRIPTION` file:

  ```
  Config/build/compilation-database: true
  ```

  You'll also want to add `compile_commands.json` and `.cache` to your gitignore
  and Rbuildignore files.

  To accomplish all these steps, feel free to use the unexported function
  `pkgload:::use_compilation_db()`. It will eventually be exported from the
  usethis package.

* `load_all()` now includes a link to the exact location when loading failed \ 
(@olivroy, #282).

* User onload hooks are now passed a library path.

* Fixed an error when updating packages on load (@olivroy, #261).

* Fixed a bug in `shim_help()` where a complex `package = ` argument
  evaluating to `NULL` would cause an error (#266).
   2024-01-22 04:23:15 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
(devel/R-pkgload) +TEST_DEPENDS, but make test does not pass yet
   2024-01-22 00:33:25 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(devel/R-pkgload) Updated 1.3.3 to 1.3.4

# pkgload 1.3.4

* On load, pkgload now sets `PKGLOAD_PARENT_TEMPDIR` to the temporary
  directory used in the current process. This provides a convenient place
  to cache results for functions used in subprocesses (e.g. `devtools::test()`,
  `devtools::document()`).

* Fixes for Debian packaging.
   2024-01-08 08:48:05 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(devel/R-pkgload) Updated 1.3.2 to 1.3.3

- upstream info
# pkgload 1.3.3

* `dev_topic_index()` is now exported (#257).

* Fix handling of active bindings inside a package during unloading (#255, @klmr).

* The `helpers` argument of `load_all` now defaults to the value
  provided for the `export_all` arguments. This makes the behaviour
  safer by default (#244).

* pkgload now depends unconditionally on pkgbuild (#249).

* `load_all()` no longer standardises version number in namespace metadata
  (#231).

* New `pkg_version_raw()` to get raw package version as a string.

- pkgsrc side
  make test now fails as follows

|  * checking tests ...
|    Running 'testthat.R'
|   ERROR
|  Running the tests in 'tests/testthat.R' failed.
|  Last 13 lines of output:
|     27.   \-asNamespace("callr")$err$throw(e)
|    -- Failure ('test-po.R:7:3'): translation domain correctly loaded --------------
|    with_lang("fr_FR", "fr", hello()) (`actual`) not equal \ 
to "Bonjour" (`expected`).
|
|    `actual`:   "Hello"
|    `expected`: "Bonjour"
|    -- Failure ('test-po.R:36:3'): modified translations are correctly reloaded ----
|    with_lang("fr_FR", "fr", hello()) (`actual`) not equal \ 
to "Salut" (`expected`).
|
|    `actual`:   "Hello"
|    `expected`: "Salut"
|
|    [ FAIL 3 | WARN 9 | SKIP 15 | PASS 340 ]
   2022-12-20 14:09:47 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
(devel/R-pkgload) correction to R-fs version
   2022-12-20 14:03:54 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
(devel/R-pkgload) fix build, +DEPENDS+= R-fs
   2022-12-17 16:29:58 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(devel/R-pkgload) Updated 1.2.4 to 1.3.2

# pkgload 1.3.2

* Fixes for CRAN checks.

# pkgload 1.3.1

* `dev_topic_find()` is now exported (#215).

* `dev_help()` will remind you to run `pkgload::load_all()` if no
  in-development packages are found (#221).

* Shimmed `?` now works even if you've renamed the documentation topic (#220).

* `dev_help()` now works with an RStudio daily to deliver a rendered
  development documentation that includes working images and links (#228).

# pkgload 1.3.0

* `load_all()` now calls `rlang::check_installed()` to prompt whether
  to install missing packages.

  Outdated and missing dependencies are installed using pak if
  installed. If not, the remotes package is used if installed.
  Otherwise `install.packages()` is used as a last resort but this
  method does not support Remotes fields.

* `load_all()` gains an `attach` argument set to `TRUE` by default (#209).
  If set to `FALSE`, `load_all()` creates a new namespace but doesn't
  create a package environment on the search path. In this case, it is
  more similar to `loadNamespace()` than to `library()`.

* Improved the way help pages are displayed in RStudio. This makes the
  behaviour within and outside RStudio consistent and fixes issues
  with Rd macros (#120).

* `unregister()` is now exported. This is a gentler version of
  `unload()` which removes the package from the search path,
  unregisters methods, and unregisters the namespace. However it
  doesn't try to unload the namespace or its DLL so that dangling
  references keep working.

* User `onLoad` hooks are now run after exports have been
  populated. This allows the hook to use exported functions.

* The loaded namespace is now locked just before user `onLoad` hooks
  are run. This better reproduced the namespace sealing behaviour of
  regular loading.

  The package environment environment is now locked as well before
  both the user and package `onAttach` hooks are run.

* Added support for loading a .so or .dll file from the `inst`
  folder via a new `library.dynam()` shim (@ethanplunkett, #48).

* The `system.file()` shim now fails if you supply a path that starts
  with `inst` to better reproduce the behaviour with installed
  packages (#104).

* `load_all()` now imports its dependencies lazily to avoid parallel
  installation issues (#89).

* Unknown Rd macros no longer trigger a warning when building the
  package topic index (#119).

* `load_all(compile = TRUE)` now forces a full recompilation (#93).

* The advice about running `rm()` to remove conflicts with objects in
  the global environment is now clickable in RStudio (#199).

* New `is_loading()` predicate to detect whether `load_all()` is
  currently running (#134).

* `.dynLibs()` is no longer emptied when package with no DLL is
  unloaded (#176).

* The `?` shim no longer interprets `?"/"` as a path (#198).

* rstudioapi is no longer a hard dependency of pkgload (#187).

* Errors thrown in user hooks are now demoted to a warning
  condition. Previously they were demoted using `try()`, making it
  harder to debug them.

* `load_all()` correctly re-loads modified translations, avoiding
  the usual gettext behaviour.
   2022-04-30 02:49:18 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(devel/R-pkgload) Updated 1.2.1 to 1.2.4

# pkgload 1.2.4

* Lionel Henry is now the maintainer.

* `load_all()` automatically registers package translations, if found.

# pkgload 1.2.3

* pkgload now forces all bindings on unload. This fixes errors and
  inconsistencies when dangling references force lazy bindings after
  unload or reload.

* `load_all()` now restores S3 methods registered by third party
  packages (#163).

* `load_dll()` will now preserve the DLL name when loading instead of
  always using the package name. This allows packages to include DLL's
  with different names (#162, @dfalbel).