[SOLVED] Strange namespace problem

Everything related to the development of modules in jamovi
Post Reply
User avatar
mcfanda@gmail.com
Posts: 452
Joined: Thu Mar 23, 2017 9:24 pm

[SOLVED] Strange namespace problem

Post by mcfanda@gmail.com »

Hi
I'm trying to test a module I developed on two different computers, both with ubuntu linux, both computers have jamovi 0.8.0.7 interface, and jamovi 0.7.3 module. Both have the jmvtools 0.8.1

I install the exact same module source from github, so I'm sure is the same code. Both computers compile well and install the module

When I use the module in Jamovi, however only on one computer I got this message:
object 'sigma' is not exported by namespace:stats
Please note that in both computers this 'sigma' is exported in standard R (Rstudio) and works fine. Even stranger, if I run the module with Rstudio (so with the syntax) it works well in both computers and 'sigma' does not give any problem.

the only difference I can see between the two workstations is that the one in which the module works has R 3.3.2 whereas the other has R 3.2.3. Is this the problem?
User avatar
jonathon
Posts: 2609
Joined: Fri Jan 27, 2017 10:04 am

Re: Strange namespace problem

Post by jonathon »

hey, it looks like sigma was only introduced in the R 3.3. it's not here for example:

https://www.rdocumentation.org/packages ... ions/3.2.5

but it is here:

https://www.rdocumentation.org/packages ... rsions/3.3

we occasionally copy code from R 3.3 into our packages if they're missing from 3.2. ubuntu xenial/mint only ship with 3.2, so we try and maintain compatibility with 3.2

cheers
User avatar
mcfanda@gmail.com
Posts: 452
Joined: Thu Mar 23, 2017 9:24 pm

Re: Strange namespace problem

Post by mcfanda@gmail.com »

Well, I'm getting in trouble here. I cleaned the build folder and rebuilt and know I get:
'summary' is not exported by namespace:stats

in both computers, and I did not change the code!! I'm stuck
User avatar
jonathon
Posts: 2609
Joined: Fri Jan 27, 2017 10:04 am

Re: Strange namespace problem

Post by jonathon »

oh that's an easy one :)

summary is in the base namespace, not stats :P

https://www.rdocumentation.org/packages ... cs/summary

jonathon
User avatar
mcfanda@gmail.com
Posts: 452
Joined: Thu Mar 23, 2017 9:24 pm

Re: Strange namespace problem

Post by mcfanda@gmail.com »

you right , my bad, thx
Post Reply