The NetBSD Project

CVS log for pkgsrc/devel/R-pkgload/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / devel / R-pkgload

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jun 21 11:14:28 2026 UTC (4 months, 3 weeks ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, HEAD
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
(devel/R-pkgload) Updated 1.4.0 to 1.5.3, this is needed for fixing R-devtools packaging

# pkgload 1.5.3

* When reloading a package, `load_all()` now runs the unload hooks of the
  previously loaded package (`.onUnload()` and user hooks registered with
  `setHook()`), whether it was loaded with pkgload or regularly. The old
  namespace and its DLL are still kept loaded so that dangling references
  continue to work, and errors thrown from `.onUnload()` are demoted to
  warnings so that they can't prevent reloading (#253).

# pkgload 1.5.2

* Better handling of S7 topics (#332).


# pkgload 1.5.1

* Fixes for CRAN checks.


# pkgload 1.5.0

* Added support for injecting breakpoints in Positron (posit-dev/positron#1766).


# pkgload 1.4.1

* `load_all()` now supports explicit `debug` option to control using debug compiler flags (#224, @assaron).

* The generator of `compile_commands.json` now works with packages that compile extra libraries such as ragg.

* The generator of `compile_commands.json` now works with sources in subdirectories (#308, @krlmlr).

* The generator of `compile_commands.json` now checks for existing `R_SHARE_DIR`
  and `R_INCLUDE_DIR` environment variables (#287, #296, @TimTaylor and
  @shikokuchuo).

* The generator of `compile_commands.json` is now more reliable in the presence
  of extra whitespace in `make`'s output (#288, @TimTaylor).

* The generator of `compile_commands.json` now uses escaped double quotes for LinkingTo packages to ensure valid argument strings when parsed on Windows (#305, @tylermorganwall).

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Oct 19 22:41:03 2024 UTC (2 years ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -2 lines
(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).

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jan 22 03:23:15 2024 UTC (2 years, 9 months ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +9 -3 lines
(devel/R-pkgload) +TEST_DEPENDS, but make test does not pass yet

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jan 21 23:33:24 2024 UTC (2 years, 9 months ago) by mef
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -2 lines
(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.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jan 8 07:48:05 2024 UTC (2 years, 10 months ago) by mef
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -2 lines
(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 ]

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Dec 20 13:09:47 2022 UTC (3 years, 10 months ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
(devel/R-pkgload) correction to R-fs version

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Dec 20 13:03:54 2022 UTC (3 years, 10 months ago) by mef
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -2 lines
(devel/R-pkgload) fix build, +DEPENDS+= R-fs

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 17 15:29:58 2022 UTC (3 years, 11 months ago) by mef
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
(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.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Apr 30 00:49:18 2022 UTC (4 years, 6 months ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -3 lines
(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).

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Jun 1 13:31:23 2021 UTC (5 years, 5 months ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
(devel/R-pkgload) Updated 1.1.0 to 1.2.1

# pkgload 1.2.1

* `unload()` no longer unregisters methods for generics of the package being unloaded. This way dangling references to generics defined in the stale namespace still work as expected (r-lib/vctrs#1341).
* `load_all()` will now work for packages that have testthat tests but do not have testthat installed (#151)
* The `pkgbuild` dependency has been moved to `Suggests`, as it is only needed for packages with compiled code.

* `load_all()` will now work for packages that have testthat tests but do not have testthat installed (#151)

* `load_all(warn_conflicts = TRUE)` becomes more narrow and only warns when a *function* in the global environment masks a *function* in the package, consistent with the docs (#125, #143 @jennybc).

* `load_all()` no longer does a comprehensive check on the `DESCRIPTION` file when loading, instead just checking that it exists and starts with Package (#149, @malcolmbarrett)

* `unload()` no longer warns when it can't unload a namespace.

# pkgload 1.2.0

* Fix test failure in R 4.1 with regards to S4 method registration

* `load_all()` now preserves existing namespaces in working order. In
  particular, it doesn't unload the package's shared library and keeps
  it loaded instead. When reloading, a copy of the SO for the new
  namespace is loaded from a temporary location. These temporary SOs
  are only unloaded on GC and deleted from their temporary location
  via a weak reference attached to the namespace.

  This mechanism ensures that lingering references to the namespace
  keep working as expected. Consequently the namespace
  propagation routine that was added to pkgload as a workaround has
  been removed.

  Note that `.Call()` invocations that pass a string symbol rather
  than a structured symbol may keep crashing, because R will look into
  the most recently loaded SO of a given name. Since symbol
  registration is now the norm, we don't expect this to cause much
  trouble.

* `load_all()` no longer forces all bindings of a namespace to avoid
  lazy-load errors. Instead, it removes exported S3 methods from the
  relevant tables.

  - This improves the loading behaviour with packages that define
    objects in their namespaces lazily (e.g. with `delayedAssign()`).

  - This also makes `load_all()` more predictable after a method has
    been removed from the package. It is now actually removed from the
    generic table. It would previously linger until R was restarted.

* If `load_all()` attaches testthat, it automatically suppresses conflicts.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Sep 20 04:13:53 2020 UTC (6 years, 1 month ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +7 -3 lines
(devel/R-pkgload) Updated 1.0.2 to 1.1.0.  make test fails

# pkgload 1.1.0

* `dev_example()` now works after removing an inconsistent call to `load_all()`
  (@riccardoporreca, #122).

* `load_all()` now issues a warning if exported objects conflict with objects
  defined in the global environment (#112)

* `run_example()` arguments `run` and `test` are deprecated in favor of the
  (hopefully) more clear `run_dontrun` and `run_donttest` (#107).

* Internal fixes for compatibility with the future 4.1.0 release.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Aug 9 19:11:22 2019 UTC (7 years, 3 months ago) by brook
Branches: MAIN
CVS tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3
R-pkgload: initial commit

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.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>