CRAN Package Check Results for Package gripp

Last updated on 2019-08-09 13:47:04 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.19 2.93 27.72 30.65 ERROR
r-devel-linux-x86_64-debian-gcc 0.2.19 2.45 22.75 25.20 ERROR
r-devel-linux-x86_64-fedora-clang 0.2.19 38.71 NOTE
r-devel-linux-x86_64-fedora-gcc 0.2.19 37.41 NOTE
r-devel-windows-ix86+x86_64 0.2.19 8.00 46.00 54.00 OK
r-patched-linux-x86_64 0.2.19 2.63 28.05 30.68 ERROR
r-patched-solaris-x86 0.2.19 63.80 NOTE
r-release-linux-x86_64 0.2.19 3.02 27.63 30.65 ERROR
r-release-windows-ix86+x86_64 0.2.19 10.00 66.00 76.00 OK
r-release-osx-x86_64 0.2.19 NOTE
r-oldrel-windows-ix86+x86_64 0.2.19 4.00 44.00 48.00 OK
r-oldrel-osx-x86_64 0.2.19 NOTE

Check Details

Version: 0.2.19
Check: examples
Result: ERROR
    Running examples in 'gripp-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: cost
    > ### Title: Cost function
    > ### Aliases: cost
    >
    > ### ** Examples
    >
    > # number of parameters.
    > n <- 2
    > #
    > # Configure the name of the folder where each file with the parameter to be changed.
    > # If the folder is 'wd' then it will not be changed.
    > # You can change it to another location where your parameter files are.
    > auxi <- system.file(package = "gripp")
    > folder_name <- c(auxi,auxi)
    > #
    > # Configure the name of each file to be changed in the Direct Problem Solver.
    > file_name <- c('f1.R','f1.R')
    > #
    > # Configure the name of each parameter to be changed.
    > parm_name <- c('A','B')
    > #
    > # Configure alternative method using line number to enter each parameter
    > # When line_number is zero, then the input method uses keywords.
    > line_number <-c(0,0)
    > #
    > # Configure each parameter type, where:
    > # 1 means a numeric variable informed as a string, such as parm <- "1.38"
    > # 2 means a numeric vector informed as a string of numbers separated with a space character.
    > # For example, parm <- "1.25 3.4". You must tell which one will be the variable considered.
    > parm_type <- c(1,1)
    > #
    > # Informe the position of the variable to be considered in the problem in the vector.
    > # If the parameter is a numeric variable, then its position is zero.
    > parm_vector <- c(0,0)
    > #
    > # Configure the name of the folder where the command must be called.
    > # If the folder is 'wd' then it will not be changed.
    > # You can change it to another location where your parameter files are.
    > command_folder <- auxi
    > #
    > # This variable means that the Direct Problem is solved using R or outside
    > # if this is FALSE, the results are to be read from a file.
    > # When it is TRUE, results will be passed inside R using the variable "results"
    > isitR <- TRUE
    > #
    > # Configure the command to be used to call the Direct Problem Solver.
    > command <- 'f1.R'
    > #
    > # Configure the name of the file to be used as a target by the cost function.
    > # The file was built using parm <- c(1,3).
    > # It is also a single column of values.
    > target <- 'alvo.dat'
    > #
    > # Configure the name of the folder where the target file can be found.
    > # If the folder is 'wd' then it will not be changed.
    > # You can change it to another location where your target file is.
    > target_folder <- auxi
    > #
    > # Configure a string to be used to attrib values in the Direct Problem file.
    > attrib_str <- '<-'
    > #
    > # Configure the name of the file with the results obtained by the Direct Problem.
    > # It must be a single column of values.
    > # The results are changed at each run by the Direct Problem Solver.
    > result <- 'result.dat'
    > #
    > # Configure the name of the folder where the results can be found after each run.
    > # If the folder is 'wd' then it will not be changed.
    > # You can change it to another location where your result file is.
    > result_folder <- tempdir()
    > #
    > parm<- c(1,3)
    > cost(parm)
    Warning in file(con, "w") :
     cannot open file 'f1.R': Read-only file system
    Error in file(con, "w") : cannot open the connection
    Calls: cost -> change_parm -> writeLines -> file
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 0.2.19
Check: dependencies in R code
Result: NOTE
    Namespace in Imports field not imported from: ‘usethis’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-osx-x86_64, r-oldrel-osx-x86_64