Hi I have encountered a problem while trying to build a module in jamovi, when I tried to incorporate the analysis into the b.R file, jamovi returns error with the error message of "could not find function 'VectorSource'" as show in the screenshot below.
The analysis runs fine with R and I also saw other people reporting this issue. Is there a solution to this error?
Thank you!
Jamovi could not find function
Jamovi could not find function
- Attachments
-
- Screenshot 2022-04-13 164103.png (31.41 KiB) Viewed 3138 times
Re: Jamovi could not find function
hi,
jamovi modules are in essence just R packages, so they have the same requirements. in this case, you need to either add VectorSource to your NAMESPACE file
https://r-pkgs.org/namespace.html
or refer to it by it's full package name, i.e.
tm::VectorSource(...)
jonathon
jamovi modules are in essence just R packages, so they have the same requirements. in this case, you need to either add VectorSource to your NAMESPACE file
https://r-pkgs.org/namespace.html
or refer to it by it's full package name, i.e.
tm::VectorSource(...)
jonathon
Re: Jamovi could not find function
Hi Jonathon, thank you for your reply. I now have imported all necessary packages into NAMESPACE. But when I tried to reinstall the module again it now returns a new error message "there is no package call 'tm'". I have attached the below. Can you help me with this issue? Thank you!
- Attachments
-
- Screenshot 2022-04-13 232344.png (21.75 KiB) Viewed 3123 times
Re: Jamovi could not find function
I also tried using the full package name tm::VectorSource in my codes and it returns the same message:
- Attachments
-
- Screenshot 2022-04-13 234755.png (28.09 KiB) Viewed 3120 times
Re: Jamovi could not find function
you'll need to put tm in your imports in your DESCRIPTION file too.
jonathon
jonathon
Re: Jamovi could not find function
Hi LizXSam
Please see the source code on my github: https://github.com/hyunsooseol
Seol
Please see the source code on my github: https://github.com/hyunsooseol
Seol