* using log directory ‘/srv/hornik/tmp/CRAN_pretest/PSIM.Rcheck’ * using R Under development (unstable) (2024-09-15 r87152) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 18.1.8 (9) Debian flang-new version 18.1.8 (9) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘PSIM/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘PSIM’ version ‘0.1.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [3s/3s] NOTE Maintainer: ‘Luana de Azevedo de Oliveira ’ New submission Possibly misspelled words in DESCRIPTION: atributes (9:84) No Authors@R field in DESCRIPTION. Please add one, modifying Authors@R: c(person(family = "c)", role = "aut", comment = "\"aut\", \"cre\""), person(family = "person", role = "aut", comment = "\"ctb\""), person(given = c("comment", "=", "c)"), family = ")", role = "aut", comment = "ORCID = \"0000-0003-1533-5535\""), person(given = c("Luana", "de", "Azevedo"), family = "de Oliveira", role = "cre", email = "luana.azevedo.oliveira.2022@gmail.com")) as necessary. Author field should be Authors@R. Current value is: c( person("Luana", "Oliveira", email = "luana.azevedo.oliveira.2022@gmail.com", role = c("aut", "cre")), person("Marcos", "Santos", email = "marcosdossantos@ime.eb.br", role = c("ctb"), comment = c(ORCID = "0000-0003-1533-5535")) ) Found the following (possibly) invalid URLs: URL: https://cran.r-project.org/package=psim From: README.md Status: 404 Message: Not Found * 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 ‘PSIM’ 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 ... NOTE Non-standard file/directory found at top level: ‘Testes.R’ * 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 psicalc: no visible global function definition for ‘%>%’ psicalc: no visible global function definition for ‘mutate’ psicalc: no visible global function definition for ‘rowMins’ psicalc: no visible global function definition for ‘select’ psicalc: no visible binding for global variable ‘id_criterio’ psicalc: no visible binding for global variable ‘criterio’ psicalc: no visible global function definition for ‘rowMaxs’ psicalc: no visible global function definition for ‘ungroup’ psicalc: no visible global function definition for ‘mutate_at’ psicalc: no visible global function definition for ‘vars’ psicalc: no visible binding for global variable ‘media_criterio’ psicalc: no visible binding for global variable ‘PV_j’ psicalc: no visible binding for global variable ‘phi_j’ psicalc: no visible binding for global variable ‘psi_j’ Undefined global functions or variables: %>% PV_j criterio id_criterio media_criterio mutate mutate_at phi_j psi_j rowMaxs rowMins select ungroup vars * checking Rd files ... [0s/0s] OK * 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 Undocumented arguments in Rd file 'psicalc.Rd' ‘optimization’ Documented arguments not in \usage in Rd file 'psicalc.Rd': ‘optimizations’ 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 files in ‘vignettes’ ... WARNING Files in the 'vignettes' directory but no files in 'inst/doc': ‘comments.Rmd’ Package has no Sweave vignette sources and no VignetteBuilder field. * checking examples ... [0s/0s] ERROR Running examples in ‘PSIM-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: psicalc > ### Title: PREFERENCE SELECTION INDEX METHOD PSI > ### Aliases: psicalc > > ### ** Examples > > optimizations <- c("min","min", "max", "max") #"min" and "max" should be all lowercase > decision_matrix <- data.frame(criterio1 = c(7000, 15000, 20000), + criterio2 = c(700, 800, 1000), + criterio3 = c(280, 300, 180), + criterio4 = c(120, 880, 1200)) > result <- psicalc(data, optimizations) Error in t(data) %>% as.data.frame() : could not find function "%>%" Calls: psicalc Execution halted * checking for unstated dependencies in ‘tests’ ... WARNING 'library' or 'require' call not declared from: ‘tidyverse’ * checking tests ... [1s/1s] ERROR Running ‘testthat.R’ [0s/0s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(PSIM) > > test_check("PSIM") [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('teste_psi.R:5:1'): (code run outside of `test_that()`) ────────────── Error in `library(tidyverse)`: there is no package called 'tidyverse' Backtrace: ▆ 1. └─base::library(tidyverse) at teste_psi.R:5:1 [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted * checking package vignettes ... NOTE Package has ‘vignettes’ subdirectory but apparently no vignettes. Perhaps the ‘VignetteBuilder’ information is missing from the DESCRIPTION file? * 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: 2 ERRORs, 3 WARNINGs, 4 NOTEs