Optim_doc error when no user-installed packages

Problem description

When I try to use optim_doc("nonlin_residmin") I get the following error:

error: structure has no member 'name'
error: called from
optim_doc at line 38 column 5

I think the problem is that as all my packages are installed for all users as administrator, the local_list in [local_list, global_list] = pkg ("list") is empty and thus giving an error when trying to read struct.name. Maybe substituting the listing command by installed_packages = pkg ("list") and searching in that list won’t arise errors, but I don’t know if that could give other problems.

My system

  • OS: Manjaro 20.2.1
  • Octave version: Version 6.1.0
  • Installation method: e.g. Downloaded and installed GNU Octave and octave-optim from pamac