[Extern] Avoid test plugin entry on main menu

meik michalke meik.michalke at uni-duesseldorf.de
Tue Aug 26 17:43:43 BST 2025


hi,

Am Dienstag, 26. August 2025, 17:36:17 CEST schrieb DES Alfonso Cano Robles:
> Yesterday I worked on this plugin, with three components:
> 
> https://github.com/AlfCano/rk.shiny.plugins/blob/main/source_code/make_rk_sh
> iny.R
> 
> But I still don't know how to avoid creating the "test->rk.shiny.plugins"
> entry on the menu and keeping only the "Shiny" option.
> What am I missing?

your definition of the "hierarchy" is a bit misplaced. you have tried

  rk.plugin.component(..., hierarchy = list("Shiny", "ggquickeda"), ...)

if you consult ?rk.plugin.component you can see hierarchy here only allows a 
subset of known top level menus of which "Shiny" is not a part, and therefore 
it falls back to the default "test".

that is unless you define a "Shiny" top menu instead with

  rk.plugin.skeleton(
    ...,
    pluginmap=list(
      name="ggquickeda",
      hierarchy=list("Shiny")
    ),
    ...
  )

you must then move the "xml", "js", "rkh" and "provides" definitions from 
rk.plugin.component() to rk.plugin.skeleton() as well and remove 
"ggquickeda_component" from the components in rk.plugin.skeleton(), because it 
is also defined as the default component.

in short, if a plugin has only one component, you should put its definition 
directly in rk.plugin.skeleton(), and add only additional components as 
rk.plugin.component() objects.


viele grüße :: m.eik

-- 
  dipl. psych. meik michalke
  institut f"ur experimentelle psychologie
  abt. f"ur diagnostik und differentielle psychologie
  heinrich-heine-universit"at 40204 d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 525 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-users/attachments/20250826/d596e746/attachment.sig>


More information about the rkward-users mailing list