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
Namespace failed to load
Namespace failed to load
- Attachments
-
- sumttest.b.R
- (833 Bytes) Downloaded 336 times
-
- sumttest.a.yaml
- (821 Bytes) Downloaded 338 times
-
- 0000.yaml
- (642 Bytes) Downloaded 330 times
Re: Namespace failed to load
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.
or use devtools::document() jmvtools::prepare() to rewrite the exports.
Re: Namespace failed to load
yeah, it looks like there's some funny entries in your NAMESPACE file.
jonathon
jonathon