* using log directory ‘/srv/hornik/tmp/CRAN_pretest/SFM.Rcheck’ * using R Under development (unstable) (2024-10-25 r87268) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.1 (1) Debian flang-new version 19.1.1 (1) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘SFM/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘SFM’ version ‘0.1.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [3s/3s] NOTE Maintainer: ‘Guangbao Guo ’ New submission Possibly misspelled words in DESCRIPTION: KMO (8:196) Unknown, possibly misspelled, fields in DESCRIPTION: ‘Author@R’ No Authors@R field in DESCRIPTION. Please add one, modifying Authors@R: c(person(given = "Guangbao", family = "Guo", role = c("aut", "cre"), email = "ggb11111111@163.com"), person(given = "Yu", family = "Jin", role = "aut")) as necessary. The Title field should be in title case. Current version is: ‘A package for analyzing Skew Factor Models using various principal component methods’ In title case that is: ‘A Package for Analyzing Skew Factor Models using Various Principal Component Methods’ The Description field should not start with the package name, 'This package' or similar. * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking serialization versions ... OK * checking whether package ‘SFM’ can be installed ... [1s/1s] OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s/0s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [0s/0s] OK * checking loading without being on the library search path ... [0s/0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [2s/2s] NOTE SOPC_estimation: no visible global function definition for ‘SOPC’ calculate_errors: no visible global function definition for ‘SOPC’ calculate_errors: no visible global function definition for ‘frobenius.norm’ perform_skew_factor_model_tests: no visible global function definition for ‘runif’ perform_skew_factor_model_tests: no visible global function definition for ‘mvrnorm’ perform_skew_factor_model_tests: no visible binding for global variable ‘distribution_type’ perform_skew_factor_model_tests: no visible global function definition for ‘rsn’ perform_skew_factor_model_tests: no visible global function definition for ‘rsc’ perform_skew_factor_model_tests: no visible global function definition for ‘rst’ perform_skew_factor_model_tests: no visible binding for global variable ‘r’ perform_skew_factor_model_tests: no visible global function definition for ‘KMO’ perform_skew_factor_model_tests: no visible global function definition for ‘cortest.bartlett’ perform_skew_factor_model_tests: no visible global function definition for ‘cor’ Undefined global functions or variables: KMO SOPC cor cortest.bartlett distribution_type frobenius.norm mvrnorm r rsc rsn rst runif Consider adding importFrom("stats", "cor", "runif") to your NAMESPACE file. * checking Rd files ... [0s/0s] NOTE checkRd: (-1) SFM.Rd:16: Lost braces; missing escapes or markup? 16 | @param {xi} A numerical parameter used exclusively in the "Skew-t" distribution, representing the distribution's xi parameter.} | ^ * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... WARNING Documented arguments not in \usage in Rd file 'SFM.Rd': ‘{omega}’ ‘{alpha}’ Assignments in \usage in Rd file 'SFM.Rd': X <- SFM(n, p, m, distribution_type) Bad \usage lines found in Rd file 'SOPC_estimation.Rd': function(data, gamma, eta) Bad \usage lines found in Rd file 'calculate_errors.Rd': calculate_errors <- function(data, A, D) Functions with \usage entries need to have the appropriate \alias entries, and all their arguments documented. The \usage entries must correspond to syntactically valid R code. See chapter ‘Writing R documentation files’ in the ‘Writing R Extensions’ manual. * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... [0s/0s] ERROR Running examples in ‘SFM-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: SFM > ### Title: The SFM function is to generate Skew Factor Models data. > ### Aliases: SFM perform_skew_factor_model_tests > > ### ** Examples > > library(psych) > library(MASS) > library(SOPC) > library(sn) Loading required package: stats4 Attaching package: ‘sn’ The following object is masked from ‘package:psych’: tr The following object is masked from ‘package:stats’: sd > library(matrixcalc) Attaching package: ‘matrixcalc’ The following object is masked from ‘package:sn’: vech > n <- 2000 > p <- 10 > m <- 5 > xi <- 5 > omega <- 2 > alpha <- 5 > distribution_type<- "Skew-Normal Distribution" > X <- SFM(n, p, m,xi,omega,alpha,distribution_type) Error in SFM(n, p, m, xi, omega, alpha, distribution_type) : could not find function "SFM" Execution halted * checking PDF version of manual ... [2s/2s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 1 WARNING, 3 NOTEs