Skip to content

nwcommands 3.13.0

Choose a tag to compare

@thomas-u-grund thomas-u-grund released this 31 Oct 15:35
· 856 commits to main since this release

The native plugins can be compiled on the user's own computer.

Added

  • nwinstall, buildplugin(...) compiles the native plugins on the computer that needs them. buildplugin(nwcommands), buildplugin(nwsaom), buildplugin(nwergm), buildplugin(nwdynam) or buildplugin(all) fetches the C source from the repositories (buildfrom() reads a local copy, release() a tagged release), compiles it with the compiler of the computer (macOS and Linux; a C compiler and make are needed) and installs the plugin where net install puts it, keeping an existing file as .prev. It is the fallback for a platform whose shipped plugin is missing, older than the .ado files or does not load. Tested on macOS (Apple silicon, Stata 17); on Windows the command stops with a message. Test test_buildplugin.do.
  • The C source of the core plugin and of the viewer launcher ships with the starter package (native/*, listed in nwcommands.pkg and _pkg_boot.txt as ancillary files): net get nwcommands, from(https://nwcommands.org/net/) copies it, together with a build note (nwgraph_native_readme.txt). net install still installs the compiled plugins only. The model packages ship their source the same way.