Skip to content

pkgload 1.4.0

Latest
Compare
Choose a tag to compare
@lionel- lionel- released this 28 Jun 11:43
· 5 commits to main since this release
  • 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).