Namespace failed to load

Everything related to the development of modules in jamovi
Post Reply
srk80
Posts: 2
Joined: Sat Mar 18, 2023 7:37 am

Namespace failed to load

Post by srk80 »

I am constantly getting error while creating a package for summarized t test using BSDA package. Help please.

Error:
jmvtools::install()

jamovi compiler

jamovi 2.6.44 found at C:\Program Files\jamovi 2.6.44.0\bin\jamovi.exe
wrote: sumttest.h.R
wrote: sumttest.u.yaml
wrote: sumttest.src.js
(node:19776) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\lenovo\AppData\Local\R\win-library\4.4\jmvtools\node_modules\jamovi-compiler\node_modules\po2json\package.json' of './lib/po2json'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
wrote: sumttest.js
writing module meta
wrote: 0000.yaml
wrote: jamovi.yaml
wrote: jamovi-full.yaml
* installing *source* package 'RKmisc' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for 'RKmisc' in namespaceExport(ns, exports):
undefined exports: tsumtestOptions, sumTtestClass
Error: loading failed
Execution halted
ERROR: loading failed
* removing 'E:/RKmisc/build/R4.4.1-x64-win64/RKmisc'

Could not build module
###############


Description File:
#####################

Package: RKmisc
Type: Package
Title: Tests for summarized data
Version: 0.0.1
Date: 2025-04-12
Authors@R: c(
person("Ramakrishna", "Salagrama", role = c("aut", "cre", "cph"), email="ramakrishnasalagrama@gmail.com")
)
Maintainer: Ramakrishna Salagrama <ramakrishnasalagrama@gmail.com>
Description: Tests for summarized data
Depends:
R (>= 3.2)
Imports:
BSDA
License: GPL-3
Suggests:
ggplot2 (>= 2.1.0),
dplyr,
tidyr
RoxygenNote: 7.2.3
Encoding: UTF-8
Attachments
sumttest.b.R
(833 Bytes) Downloaded 336 times
sumttest.a.yaml
(821 Bytes) Downloaded 338 times
0000.yaml
(642 Bytes) Downloaded 330 times
sbalci
Posts: 133
Joined: Sat Jan 06, 2018 10:25 pm
Contact:

Re: Namespace failed to load

Post by sbalci »

there is an export in NAMESPACE file that may cause the problem. try correcting NAMESPACE file.
or use devtools::document() jmvtools::prepare() to rewrite the exports.
User avatar
jonathon
Posts: 2816
Joined: Fri Jan 27, 2017 10:04 am

Re: Namespace failed to load

Post by jonathon »

yeah, it looks like there's some funny entries in your NAMESPACE file.

jonathon
Post Reply