package function dosen't work

Everything related to the development of modules in jamovi
Post Reply
asmpro
Posts: 9
Joined: Tue Jan 13, 2026 3:47 am

package function dosen't work

Post by asmpro »

Hi,
when use this function from dmetar package

Code: Select all

dmetar::plot.InfluenceAnalysis(baujatData$state, "baujat")
this error appears in jamovi

Code: Select all

Debug

Error: 'plot.InfluenceAnalysis' is not an exported object from 'namespace:dmetar'

eval(ev)
eval(ev)
private$.baujatPlot(image, theme = t$theme, ggtheme = t$ggtheme, ...)
on the other hand I use this function from the same package

Code: Select all

dmetar::forest.find.outliers(OUTData$state, col.diamond = "black", col.subgroup ="gray30")
and work without any problems

this is the github repo
https://github.com/asmpro7/MetaPort



Ahmed Abdelmageed
User avatar
jonathon
Posts: 2931
Joined: Fri Jan 27, 2017 10:04 am

Re: package function dosen't work

Post by jonathon »

hi,

i think this error message is telling you what the problem is:

Error: 'plot.InfluenceAnalysis' is not an exported object from 'namespace:dmetar'

you could workaround this with the use of three colons:

dmetar:::plot.InfluenceAnalysis()

just be careful, because if you're storing complex S3 objects in your state, sometimes these in R blow out to have really big sizes. see the warning at the bottom of this page:

https://dev.jamovi.org/tuts0203-state.html#setState()

jonathon
asmpro
Posts: 9
Joined: Tue Jan 13, 2026 3:47 am

Re: package function dosen't work

Post by asmpro »

Thanks
I will build the functions from scratch as the dmetar package have an internal erorr
Post Reply