* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/FuncNN.Rcheck’ * using R Under development (unstable) (2024-04-15 r86425) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7) GNU Fortran (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7) * running under: Fedora Linux 38 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘FuncNN/DESCRIPTION’ ... OK * this is package ‘FuncNN’ version ‘1.0’ * package encoding: UTF-8 * 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 whether package ‘FuncNN’ can be installed ... [20s/21s] OK * checking package directory ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking dependencies in R code ... NOTE Namespace in Imports field not imported from: ‘foreach’ All declared Imports should be used. * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [30s/31s] OK * checking Rd files ... 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 ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... OK * checking examples with --run-donttest ... [10s/10s] ERROR Running examples in ‘FuncNN-Ex.R’ failed The error most likely occurred in: > ### Name: fnn.cv > ### Title: Functional Neural Networks with Cross-validation > ### Aliases: fnn.cv > > ### ** Examples > > ## No test: > # Libraries > library(fda) Loading required package: splines Loading required package: fds Loading required package: rainbow Loading required package: MASS Loading required package: pcaPP Loading required package: RCurl Loading required package: deSolve Attaching package: ‘fda’ The following object is masked from ‘package:graphics’: matplot > > # Loading data > data("daily") > > # Creating functional data > nbasis = 65 > temp_data = array(dim = c(nbasis, 35, 1)) > tempbasis65 = create.fourier.basis(c(0,365), nbasis) > tempbasis7 = create.bspline.basis(c(0,365), 7, norder = 4) > timepts = seq(1, 365, 1) > temp_fd = Data2fd(timepts, daily$tempav, tempbasis65) > prec_fd = Data2fd(timepts, daily$precav, tempbasis7) > prec_fd$coefs = scale(prec_fd$coefs) > > # Data set up > temp_data[,,1] = temp_fd$coefs > resp_mat = prec_fd$coefs > > # Non functional covariate > weather_scalar = data.frame(total_prec = apply(daily$precav, 2, sum)) > > # Setting up data to pass in to function > weather_data_full <- array(dim = c(nbasis, ncol(temp_data), 1)) > weather_data_full[,,1] = temp_data > scalar_full = data.frame(weather_scalar[,1]) > total_prec = apply(daily$precav, 2, mean) > > # cross-validating > cv_example <- fnn.cv(nfolds = 5, + resp = total_prec, + func_cov = weather_data_full, + scalar_cov = scalar_full, + domain_range = list(c(1, 365)), + learn_rate = 0.001) Evaluating Integrals: Error: Valid installation of TensorFlow not found. Python environments searched for 'tensorflow' package: /usr/bin/python3.11 /usr/bin/python3.11 Python exception encountered: Traceback (most recent call last): File "/data/blackswan/ripley/R/R-devel/site-library/reticulate/python/rpytools/loader.py", line 122, in _find_and_load_hook return _run_hook(name, _hook) ^^^^^^^^^^^^^^^^^^^^^^ File "/data/blackswan/ripley/R/R-devel/site-library/reticulate/python/rpytools/loader.py", line 96, in _run_hook module = hook() ^^^^^^ File "/data/blackswan/ripley/R/R-devel/site-library/reticulate/python/rpytools/loader.py", line 120, in _hook return _find_and_load(name, import_) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'tensorflow' You can install TensorFlow using the install_tensorflow() function. Execution halted * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR, 1 NOTE See ‘/data/blackswan/ripley/R/packages/tests-devel/FuncNN.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 3:02.26, 156.04 + 15.79