### R Example Execution Error for EQRN (torch dependency) Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md The examples for the 'EQRN' package failed to run, specifically due to an issue with the 'torch' library. The error 'Lantern is not loaded' suggests that required 'torch' dependencies are missing and need to be installed using `install_torch()`. ```R Running examples in ‘EQRN-Ex.R’ failed The error most likely occurred in: > ### Name: default_device > ### Title: Default torch device > ### Aliases: default_device > > ### ** Examples > > device <- default_device() Error in cpp_cuda_is_available() : Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Calls: default_device -> -> cpp_cuda_is_available Execution halted ``` -------------------------------- ### R Package Installation Warning for EQRN (torch startup) Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md During the installation check for 'EQRN', a warning was issued indicating that 'torch' failed to start. This suggests a persistent issue with the 'torch' dependency that might require an R session restart or further troubleshooting. ```R Found the following significant warnings: Warning: ℹ torch failed to start, restart your R session to try again. See ‘/scratch/henrik/revdep/doFuture/checks/EQRN/new/EQRN.Rcheck/00install.out’ for details. ``` -------------------------------- ### Detailed Installation Log for momentuHMM R Package (Development) Source: https://github.com/futureverse/dofuture/blob/develop/revdep/failures.md This log provides a comprehensive view of the 'momentuHMM' R package installation process from a development source. It includes compiler commands (GCC/G++), successful unpacking, and the critical error indicating a missing 'terra' package during the lazy loading phase, leading to installation failure. ```Shell * installing *source* package ‘momentuHMM’ ... ** this is package ‘momentuHMM’ version ‘1.5.5’ ** package ‘momentuHMM’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘gcc (GCC) 13.3.1 20240611 (Red Hat 13.3.1-2)’ using C++ compiler: ‘g++ (GCC) 13.3.1 20240611 (Red Hat 13.3.1-2)’ g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c XBloop.cpp -o XBloop.o g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c getDM.cpp -o getDM.o ... ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘terra’ Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: lazy loading failed for package ‘momentuHMM’ * removing ‘/scratch/henrik/revdep/doFuture/checks/momentuHMM/new/momentuHMM.Rcheck/momentuHMM’ ``` -------------------------------- ### Install doFuture R Package Pre-release Source: https://github.com/futureverse/dofuture/blob/develop/README.md Instructions to install the pre-release version of the doFuture R package directly from the 'develop' branch on GitHub. This method uses the `remotes` package and installs the package from source. ```R remotes::install_github("futureverse/doFuture", ref="develop") ``` -------------------------------- ### Summarized Installation Failure for momentuHMM R Package Source: https://github.com/futureverse/dofuture/blob/develop/revdep/failures.md This snippet captures the high-level error message indicating that the 'momentuHMM' R package failed to install, directing the user to a specific log file for more detailed information. ```Shell Installation failed. See ‘/scratch/henrik/revdep/doFuture/checks/momentuHMM/new/momentuHMM.Rcheck/00install.out’ for details. ``` -------------------------------- ### Detailed Installation Log for momentuHMM R Package (CRAN) Source: https://github.com/futureverse/dofuture/blob/develop/revdep/failures.md Similar to the development version, this log details the installation attempt for the 'momentuHMM' R package from CRAN. It shows the compilation steps and the identical 'terra' package dependency error during lazy loading, resulting in installation failure. ```Shell * installing *source* package ‘momentuHMM’ ... ** this is package ‘momentuHMM’ version ‘1.5.5’ ** package ‘momentuHMM’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘gcc (GCC) 13.3.1 20240611 (Red Hat 13.3.1-2)’ using C++ compiler: ‘g++ (GCC) 13.3.1 20240611 (Red Hat 13.3.1-2)’ g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c XBloop.cpp -o XBloop.o g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c getDM.cpp -o getDM.o ... ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘terra’ Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: lazy loading failed for package ‘momentuHMM’ * removing ‘/scratch/henrik/revdep/doFuture/checks/momentuHMM/old/momentuHMM.Rcheck/momentuHMM’ ``` -------------------------------- ### R Package Installation Failure for momentuHMM Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This snippet reports an installation failure for the 'momentuHMM' R package, indicating that details can be found in the specified installation log file. ```Console Output Installation failed. See ‘/scratch/henrik/revdep/doFuture/checks/momentuHMM/new/momentuHMM.Rcheck/00install.out’ for details. ``` -------------------------------- ### R Package Installation Log: momentuHMM Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md Log output for the installation of the 'momentuHMM' R package, showing compilation steps with GCC/G++ and a failure due to a missing 'terra' package dependency. This snippet includes logs from both development and CRAN installation attempts, detailing the build process for C/C++ components and R package loading. ```Shell * installing *source* package ‘momentuHMM’ ... ** this is package ‘momentuHMM’ version ‘1.5.5’ ** package ‘momentuHMM’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘gcc (GCC) 13.3.1 20240611 (Red Hat 13.3.1-2)’ using C++ compiler: ‘g++ (GCC) 13.3.1 20240611 (Red Hat 13.3.1-2)’ g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c XBloop.cpp -o XBloop.o g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c getDM.cpp -o getDM.o ... ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘terra’ Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: lazy loading failed for package ‘momentuHMM’ * removing ‘/scratch/henrik/revdep/doFuture/checks/momentuHMM/new/momentuHMM.Rcheck/momentuHMM’ ``` ```Shell * installing *source* package ‘momentuHMM’ ... ** this is package ‘momentuHMM’ version ‘1.5.5’ ** package ‘momentuHMM’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘gcc (GCC) 13.3.1 20240611 (Red Hat 13.3.1-2)’ using C++ compiler: ‘g++ (GCC) 13.3.1 20240611 (Red Hat 13.3.1-2)’ g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c XBloop.cpp -o XBloop.o g++ -std=gnu++17 -I"/software/c4/cbi/software/_rocky8/R-4.5.0-gcc13/lib64/R/include" -DNDEBUG -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/Rcpp/include' -I'/scratch/henrik/revdep/doFuture/library/momentuHMM/RcppArmadillo/include' -I/usr/local/include -fpic -g -O2 -c getDM.cpp -o getDM.o ... ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘terra’ Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: lazy loading failed for package ‘momentuHMM’ * removing ‘/scratch/henrik/revdep/doFuture/checks/momentuHMM/old/momentuHMM.Rcheck/momentuHMM’ ``` -------------------------------- ### Summarized Installation Failure for rechaRge R Package Source: https://github.com/futureverse/dofuture/blob/develop/revdep/failures.md This snippet captures the high-level error message indicating that the 'rechaRge' R package failed to install, directing the user to a specific log file for more detailed information. ```Shell Installation failed. See ‘/scratch/henrik/revdep/doFuture/checks/rechaRge/new/rechaRge.Rcheck/00install.out’ for details. ``` -------------------------------- ### Install doFuture R Package from CRAN Source: https://github.com/futureverse/dofuture/blob/develop/README.md This snippet provides the standard R command to install the 'doFuture' package directly from CRAN, making it available for use in R projects. ```R install.packages("doFuture") ``` -------------------------------- ### R Package Installation Warning for vmeasur Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This snippet captures a significant warning encountered during the installation of the `vmeasur` package. The warning 'no DISPLAY variable so Tk is not available' suggests that the installation environment lacks a graphical display variable, which is necessary for Tk-dependent functionalities. ```R (Installation) Found the following significant warnings: Warning: no DISPLAY variable so Tk is not available See ‘/scratch/henrik/revdep/doFuture/checks/vmeasur/new/vmeasur.Rcheck/00install.out’ for details. ``` -------------------------------- ### R Package Example Check Failure: Python Dependency Conflicts Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This log snippet shows an error during the R package 'pareg' example checks. The failure is due to conflicting Python package dependencies, specifically `tensorflow` requiring different Python versions (3.8, 3.9, 3.10) that conflict with previously reported installable versions. The error indicates that one or more Python packages failed to install. ```Log Running examples in ‘pareg-Ex.R’ failed The error most likely occurred in: > ### Name: as.data.frame.pareg > ### Title: as.data.frame for an object of class 'pareg'. > ### Aliases: as.data.frame.pareg > > ### ** Examples > > df_genes <- data.frame( ... │ └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported; ├─ tensorflow 2.10.0 would require │ └─ tensorflow-base [2.10.0 eigen_py38h1969d1f_0|2.10.0 gpu_py38h6559e04_0|2.10.0 mkl_py38hb9daa73_0], which requires │ └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported; └─ tensorflow 2.10.0 would require └─ tensorflow-base [2.10.0 eigen_py39h1969d1f_0|2.10.0 gpu_py39h6559e04_0|2.10.0 mkl_py39hb9daa73_0], which requires └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported. Error: one or more Python packages failed to install [error code 1] Execution halted ``` -------------------------------- ### R Package Installation Failure for rechaRge Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md Indicates that the 'rechaRge' package failed to install during the check process, directing to the installation output log for details. ```Shell Installation failed. See ‘/scratch/henrik/revdep/doFuture/checks/rechaRge/new/rechaRge.Rcheck/00install.out’ for details. ``` -------------------------------- ### R Package Installation Note for pareg Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md Details a non-staged installation note encountered during the 'pareg' package check, indicating where to find more information. ```Shell Found the following notes/warnings: Non-staged installation was used See ‘/scratch/henrik/revdep/doFuture/checks/pareg/new/pareg.Rcheck/00install.out’ for details. ``` -------------------------------- ### R Package Test Failure: Python Package Installation Conflicts Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This log snippet details an error encountered during the R package 'pareg' test execution. Similar to the example check, the tests failed because of Python package installation issues, specifically `tensorflow` requiring conflicting Python versions. Warnings also indicate that Python packages and Conda environments cannot be installed during `R CMD check`. ```Log Running ‘testthat.R’ ERROR Running the tests in ‘tests/testthat.R’ failed. Last 50 lines of output: zlib anaconda/linux-64::zlib-1.2.13-h5eee18b_1 Preparing transaction: ...working... done Verifying transaction: ...working... done Executing transaction: ...working... done ... └─ tensorflow-base [2.10.0 eigen_py39h1969d1f_0|2.10.0 gpu_py39h6559e04_0|2.10.0 mkl_py39hb9daa73_0], which requires └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported. Error: one or more Python packages failed to install [error code 1] In addition: Warning messages: 1: In check_forbidden_install("Python packages") : cannot install Python packages during R CMD check 2: In check_forbidden_install("Conda Environments") : cannot install Conda Environments during R CMD check Execution halted ``` -------------------------------- ### R Package rechaRge Devel Installation Log Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md Detailed log of the 'rechaRge' package installation attempt from a development source, showing a 'terra' package dependency error that caused lazy loading to fail. ```Shell * installing *source* package ‘rechaRge’ ... ** this is package ‘rechaRge’ version ‘1.0.0’ ** package ‘rechaRge’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** byte-compile and prepare package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘terra’ Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: lazy loading failed for package ‘rechaRge’ * removing ‘/scratch/henrik/revdep/doFuture/checks/rechaRge/new/rechaRge.Rcheck/rechaRge’ ``` -------------------------------- ### R Package Installation Warning for GeDS (Tk display) Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md The 'GeDS' package installation check reported a warning about the absence of a 'DISPLAY' variable, which prevents the 'Tk' graphical toolkit from being available. This might affect functionalities that rely on graphical interfaces. ```R Found the following significant warnings: Warning: no DISPLAY variable so Tk is not available See ‘/scratch/henrik/revdep/doFuture/checks/GeDS/new/GeDS.Rcheck/00install.out’ for details. ``` -------------------------------- ### R Package rechaRge CRAN Installation Log Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md Detailed log of the 'rechaRge' package installation attempt from CRAN, showing a 'terra' package dependency error that caused lazy loading to fail, similar to the development version. ```Shell * installing *source* package ‘rechaRge’ ... ** this is package ‘rechaRge’ version ‘1.0.0’ ** package ‘rechaRge’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** byte-compile and prepare package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘terra’ Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: lazy loading failed for package ‘rechaRge’ * removing ‘/scratch/henrik/revdep/doFuture/checks/rechaRge/old/rechaRge.Rcheck/rechaRge’ ``` -------------------------------- ### R Package Dependency Error for envi Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This error signifies that the 'envi' package requires 'terra', but 'terra' is not available in the environment where the check was performed. This prevents the package from being installed or used correctly. ```R Package required but not available: ‘terra’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. ``` -------------------------------- ### Integrating doFuture with Foreach %dopar% using registerDoFuture() Source: https://github.com/futureverse/dofuture/blob/develop/README.md This snippet illustrates the alternative method for integrating 'doFuture' with 'foreach' by registering 'doFuture' as the backend for the '%dopar%' operator. It's useful for adapting existing '%dopar%' code or when using packages that internally rely on '%dopar%' for parallelization. ```R library(doFuture) registerDoFuture() plan(multisession) y <- foreach(x = 1:4, y = 1:10) %dopar% { z <- x + y slow_sqrt(z) } ``` -------------------------------- ### APIDOC: foreach Scheduling Options (.options.future) Source: https://github.com/futureverse/dofuture/blob/develop/NEWS.md Documentation for controlling scheduling and chunking behavior in 'foreach()' loops using the '.options.future' argument. This allows fine-grained control over how iterations are distributed among workers, with fallback to '.options.multicore' if not specified. ```APIDOC foreach(..., .options.future = list(scheduling = )): Description: Controls whether scheduling ("chunking") should take place or not, and if so, how granular it should be. Parameters: scheduling: Type: numeric | logical Values: 1.0 (or TRUE): Elements (iterations) will be split into equally sized chunks such that each backend worker processes exactly one chunk. (Default if not set and .options.multicore not used) Inf (or FALSE): Chunking is disabled; each worker processes exactly one element at a time. 0.0: A single worker processes all elements (other workers will not be used). 2.0 (or higher): Each worker will process 'value' chunks. Fallback: If .options.future is not set, then .options.multicore = list(preschedule = ) (defined by doParallel) is used, where preschedule maps to scheduling. If neither is set, scheduling = 1.0 is used by default. ``` -------------------------------- ### Configuring %dopar% to Behave as %dofuture% with `flavor` Source: https://github.com/futureverse/dofuture/blob/develop/NEWS.md The `registerDoFuture(flavor = "%dofuture%")` option allows users to make the standard `%dopar%` infix operator behave identically to `%dofuture%`. This is particularly useful when working with existing code or packages that rely on `%dopar%` but you wish to leverage `doFuture`'s specific behaviors. ```R registerDoFuture(flavor = "%dofuture%") ``` -------------------------------- ### Temporarily Registering doFuture Adapter with `with()` Source: https://github.com/futureverse/dofuture/blob/develop/NEWS.md The `with(registerDoFuture(), { ... })` construct allows for temporarily using the `doFuture` adapter within a specific block of code. The `local = TRUE` option can be used to register it temporarily within a function scope. ```R with(registerDoFuture(), { # Your foreach code here }) # Or temporarily within a function: my_function <- function() { with(registerDoFuture(), local = TRUE, { # Your foreach code here }) } ``` -------------------------------- ### DESCRIPTION Meta-information Check Note Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This entry highlights a problem with the `DESCRIPTION` file's meta-information. It indicates that the license stub within the file is not in a valid DCF (Debian Control File) format, which is required for R package metadata. ```Configuration License stub is invalid DCF. ``` -------------------------------- ### Enabling Verbose Output for `foreach` Operations Source: https://github.com/futureverse/dofuture/blob/develop/NEWS.md The `.verbose = TRUE` argument can be passed to `foreach()` to enable detailed debugging information. This output is directed to standard error via R's message condition mechanism and is useful for troubleshooting parallel execution issues. ```R foreach(..., .verbose = TRUE) %dofuture% { # Your parallel task } ``` -------------------------------- ### Ensuring Consistent Random Number Generation with `withDoRNG()` Source: https://github.com/futureverse/dofuture/blob/develop/NEWS.md The `withDoRNG()` function allows for evaluating a `foreach %dopar%` expression with `doRNG::registerDoRNG()` temporarily set. This ensures consistent and reproducible random number generation across parallel iterations. ```R withDoRNG({ # Your foreach %dopar% expression here # e.g., foreach(i = 1:10) %dopar% { rnorm(1) } }) ``` -------------------------------- ### R Documentation File (Rd) Note for ISAnalytics Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md Similar to 'hwep', a note in 'ISAnalytics''s Rd file 'refGenes_hg19.Rd' points to lost braces or missing escapes/markup, specifically around a URL. This requires a fix in the documentation source. ```R checkRd: (-1) refGenes_hg19.Rd:21: Lost braces; missing escapes or markup? 21 | \item Download from {http://hgdownload.soe.ucsc.edu/goldenPath/hg19/database/} | ^ ``` -------------------------------- ### R Code Global Variable and Function Definition Issues Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This snippet details multiple 'no visible binding for global variable' warnings for variables like `configurationTmp` and `outFileGETmp` within the `sracipeSimulate` function. It also reports 'no visible global function definition' for `polygon` in `sracipeConvergeDist` and `RacipeSE`, suggesting that `importFrom("graphics", "polygon")` should be added to the `NAMESPACE` file to resolve these issues. ```R sracipeSimulate: no visible binding for global variable ‘configurationTmp’ sracipeSimulate: no visible binding for global variable ‘outFileGETmp’ sracipeSimulate: no visible binding for global variable ‘outFileParamsTmp’ sracipeSimulate: no visible binding for global variable ‘outFileICTmp’ sracipeSimulate: no visible binding for global variable ‘outFileConvergeTmp’ sracipeConvergeDist,RacipeSE: no visible global function definition for ‘polygon’ Undefined global functions or variables: configurationTmp outFileConvergeTmp outFileGETmp outFileICTmp outFileParamsTmp polygon Consider adding importFrom("graphics", "polygon") to your NAMESPACE file. ``` -------------------------------- ### APIDOC: doFuture.foreach.export Option Source: https://github.com/futureverse/dofuture/blob/develop/NEWS.md Documentation for the 'doFuture.foreach.export' option, which controls how global variables are identified and exported for 'foreach()' loops when using 'doFuture'. It details various modes for managing global variable visibility and export behavior. ```APIDOC doFuture.foreach.export: Description: Controls how global variables are identified and exported for foreach() loops. Values: "manual": Strictly follows the .export argument of foreach(). Disables future + globals framework. "automatic-unless-.export" (Defunct): Previously a default, now falls back to "export-and-automatic". "automatic" (Defunct): Previously a default, now falls back to "export-and-automatic". "export-and-automatic": Uses the future framework for global identification, potentially combining with .export. "export-and-automatic-with-warning": Similar to "export-and-automatic", but produces a warning listing globals potentially missing from the .export argument. Useful for developers. ``` -------------------------------- ### Parallelizing R Foreach Loops with %dofuture% Operator Source: https://github.com/futureverse/dofuture/blob/develop/README.md This snippet demonstrates the recommended way to use 'doFuture' with 'foreach' by employing the '%dofuture%' operator. It shows how to set up a 'multisession' plan and perform a parallelized loop, with global identification, RNG, and error handling managed by the future ecosystem. ```R library(doFuture) plan(multisession) y <- foreach(x = 1:4, y = 1:10) %dofuture% { z <- x + y slow_sqrt(z) } ``` -------------------------------- ### R Package simtrial Dependency Note Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md Notes an unused namespace import, 'gsDesign2', in the 'simtrial' package's R code, reminding that all declared imports should be utilized. ```Shell Namespace in Imports field not imported from: ‘gsDesign2’ All declared Imports should be used. ``` -------------------------------- ### Using the %dofuture% Operator for Parallel Execution Source: https://github.com/futureverse/dofuture/blob/develop/NEWS.md The `%dofuture%` operator provides an alternative to `%dopar%` for parallel processing with `foreach`, offering direct control and leveraging the future ecosystem for consistent random number generation, global identification, and error handling. It eliminates the need for explicit `registerDoFuture()` calls. ```R y <- foreach(x = 1:3) %dofuture% { slow_fcn(x) } ``` -------------------------------- ### Controlling Future Options with Infix Operators (%stdout%, %conditions%) Source: https://github.com/futureverse/dofuture/blob/develop/NEWS.md Future operators like `%stdout%` and `%conditions%` can be used directly with `foreach` expressions to control corresponding `options.future` arguments. This provides a more concise syntax for managing standard output and conditions during parallel execution. ```R y <- foreach(i = 1:3) %dopar% { my_fun(i) } %stdout% FALSE # Equivalent to: y <- foreach(i = 1:3, .options.future = list(stdout = FALSE)) %dopar% { my_fun(i) } ``` -------------------------------- ### APIDOC: future.globals.resolve Option Source: https://github.com/futureverse/dofuture/blob/develop/NEWS.md Documentation for the 'future.globals.resolve' option, which dictates whether global variables should be resolved. 'doFuture' now respects this option, ensuring consistency with other 'future' frontends. ```APIDOC future.globals.resolve: Description: Controls whether globals should be resolved. Behavior: doFuture now respects this option instead of being hardcoded to always resolve globals (future.globals.resolve = TRUE), making it consistent with other future frontends. ``` -------------------------------- ### APIDOC: future.globals.maxSize Option Source: https://github.com/futureverse/dofuture/blob/develop/NEWS.md Documentation for the 'future.globals.maxSize' option, which defines the maximum total size of globals allowed per future (or 'chunk'). This option now scales dynamically with the number of elements processed, ensuring consistent protection regardless of chunking strategy. ```APIDOC future.globals.maxSize: Description: Maximum total size of globals allowed per future ("chunk"). Behavior: Scaled up by the number of elements processed by the future ("chunk"), making the protection approximately invariant to the amount of chunking done by foreach. ``` -------------------------------- ### R Documentation File (Rd) Note for hwep Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md A note was found in the 'hwep' package's Rd file 'simgl.Rd' indicating lost braces or missing escapes/markup. This typically means there's a formatting error in the documentation that needs correction. ```R checkRd: (-1) simgl.Rd:50: Lost braces; missing escapes or markup? 50 | Uses the {updog} R package for simulating read counts and generating | ^ ``` -------------------------------- ### R Package Vignette Re-building Failure: Missing Magick Dependency Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This log snippet shows an error during the re-building of vignettes for the R package 'pareg'. The failure occurs because the `magick` R package, required for cropping images in the vignettes (`pareg.Rmd` and `pathway_similarities.Rmd`), is not available. This prevents the successful re-generation of the vignette outputs. ```Log Error(s) in re-building vignettes: --- re-building ‘pareg.Rmd’ using rmarkdown The magick package is required to crop "/scratch/henrik/revdep/doFuture/checks/pareg/new/pareg.Rcheck/vign_test/pareg/vignettes/pareg_files/figure-html/unnamed-chunk-4-1.png" but not available. The magick package is required to crop "/scratch/henrik/revdep/doFuture/checks/pareg/new/pareg.Rcheck/vign_test/pareg/vignettes/pareg_files/figure-html/unnamed-chunk-5-1.png" but not available. Channels: - anaconda Platform: linux-64 Collecting package metadata (repodata.json): ...working... done Solving environment: ...working... done ... --- re-building ‘pathway_similarities.Rmd’ using rmarkdown The magick package is required to crop "/scratch/henrik/revdep/doFuture/checks/pareg/new/pareg.Rcheck/vign_test/pareg/vignettes/pathway_similarities_files/figure-html/unnamed-chunk-2-1.png" but not available. The magick package is required to crop "/scratch/henrik/revdep/doFuture/checks/pareg/new/pareg.Rcheck/vign_test/pareg/vignettes/pathway_similarities_files/figure-html/unnamed-chunk-3-1.png" but not available. --- finished re-building ‘pathway_similarities.Rmd’ SUMMARY: processing the following file failed: ‘pareg.Rmd’ Error: Vignette re-building failed. Execution halted ``` -------------------------------- ### R: Accessing Globals in foreach Loops with doFuture Source: https://github.com/futureverse/dofuture/blob/develop/NEWS.md This snippet demonstrates how doFuture now automatically searches for global variables among elements that foreach() iterates over, simplifying global access within parallel loops. ```R foreach(f = F, g = G) %dopar% { f() + g() } ``` -------------------------------- ### R Package Vignette Re-building Errors for WeightedCluster Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This log details errors that occurred while attempting to re-build vignettes for the `WeightedCluster` package. It shows failures for both R Markdown (`.Rmd`) and Sweave/LaTeX (`.Rnw`) vignettes, with specific LaTeX compilation errors like 'Fatal error occurred, no output PDF file produced!' indicating issues with the LaTeX source code or environment. ```R (Vignette Build Log) Error(s) in re-building vignettes: --- re-building ‘BigDataSA.Rmd’ using rmarkdown --- finished re-building ‘BigDataSA.Rmd’ --- re-building ‘ClusterExternalValidSA.Rmd’ using rmarkdown --- finished re-building ‘ClusterExternalValidSA.Rmd’ --- re-building ‘ClusterValidSA.Rmd’ using rmarkdown --- finished re-building ‘ClusterValidSA.Rmd’ ... l.85 \usepackage {tikz}^^M ! ==> Fatal error occurred, no output PDF file produced! --- failed re-building ‘WeightedClusterPreview.Rnw’ SUMMARY: processing the following files failed: ‘FuzzySA.Rmd’ ‘WeightedClusterFR.Rnw’ ‘WeightedClusterPreview.Rnw’ Error: Vignette re-building failed. Execution halted ``` -------------------------------- ### Rd File Formatting Errors Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This log indicates formatting errors within R documentation (Rd) files. Specifically, it points to 'Lost braces' issues in `sracipeHeatmapSimilarity.Rd` at lines 31 and 32, suggesting malformed syntax in the documentation comments. ```R (Rd) checkRd: (-1) sracipeHeatmapSimilarity.Rd:31: Lost braces 31 | If clusterCut is missing, hierarchical clustering using /code{ward.D2} | ^ checkRd: (-1) sracipeHeatmapSimilarity.Rd:32: Lost braces 32 | and /code{distance = (1-cor(x, method = "spear"))/2} will be used to | ^ ``` -------------------------------- ### R Package Rd File Braces Check Errors for mikropml Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This snippet shows 'Lost braces' errors in Rd files for the 'mikropml' R package, specifically pointing to missing escapes or markup in author email addresses within the documentation. ```Console Output checkRd: (-1) create_grouped_data_partition.Rd:60: Lost braces; missing escapes or markup? 60 | Zena Lapp, {zenalapp@umich.edu} | ^ checkRd: (-1) create_grouped_data_partition.Rd:62: Lost braces; missing escapes or markup? 62 | Kelly Sovacool, {sovacool@umich.edu} | ^ checkRd: (-1) create_grouped_k_multifolds.Rd:30: Lost braces; missing escapes or markup? 30 | Zena Lapp, {zenalapp@umich.edu} | ^ checkRd: (-1) get_partition_indices.Rd:58: Lost braces; missing escapes or markup? 58 | Kelly Sovacool, {sovacool@umich.edu} | ^ checkRd: (-1) set_hparams_glmnet.Rd:16: Lost braces; missing escapes or markup? 16 | Zena Lapp, {zenalapp@umich.edu} | ^ ``` -------------------------------- ### R Package sparrpowR Dependency Error Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md Reports a critical error for the 'sparrpowR' package due to a required but unavailable dependency, 'terra', with a reference to the R Extensions manual. ```Shell Package required but not available: ‘terra’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. ``` -------------------------------- ### R Package Check Note: Non-Portable File Paths Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This log snippet is a 'NOTE' from an R package check, indicating the presence of non-portable file paths within the 'pareg' package. These paths, primarily located under `pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/`, might cause issues on different operating systems or environments due to their length or characters. ```Log Found the following non-portable file paths: pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/config_ablation_study/config.yaml pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/config_ablation_study/params.csv pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/config_dispersion_fitting/config.yaml pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/config_dispersion_fitting/params.csv pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/config_real_datasets/config.yaml pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/config_real_datasets/params.csv pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/config_regularization_effect/config.yaml pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/config_regularization_effect/params.csv pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/config_regularization_parameter/config.yaml ... pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/config_response_distribution/params.csv pareg/inst/scripts/synthetic_benchmark/resources/multi_config_workflow/config_similarity_measures/config.yaml ``` -------------------------------- ### R Package Dependency Error for pliman Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md Reports a critical error for the 'pliman' package due to a required but unavailable dependency, 'terra', with a reference to the R Extensions manual. ```Shell Package required but not available: ‘terra’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. ``` -------------------------------- ### R Package C++ Specification Check Note for ldsr Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This snippet indicates a note during C++ specification checks for the 'ldsr' R package, suggesting that the C++11 specification should be dropped unless it is essential. ```Console Output Specified C++11: please drop specification unless essential ``` -------------------------------- ### R Package Rd File Braces Check Errors for ldsr Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This snippet shows multiple 'Lost braces' errors in Rd files for the 'ldsr' R package, indicating issues with the `\itemize` and `\value` commands in the documentation, specifically that `\value` handles `\item{}{}` directly. ```Console Output checkRd: (-1) evaluation.Rd:38: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) evaluation.Rd:39: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) evaluation.Rd:40: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) evaluation.Rd:41: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) evaluation.Rd:42: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) evaluation.Rd:43: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) evaluation.Rd:44: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) evaluation.Rd:45: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) evaluation.Rd:46: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) evaluation.Rd:47: Lost braces in \itemize; \value handles \item{}{} directly ... checkRd: (-1) gen_data.Rd:35: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) gen_data.Rd:36-37: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) get_types.Rd:17: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) interpolation.Rd:23: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) interpolation.Rd:24: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) latentcor.Rd:38: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) latentcor.Rd:39: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) latentcor.Rd:40: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) latentcor.Rd:41: Lost braces in \itemize; \value handles \item{}{} directly checkRd: (-1) latentcor.Rd:42: Lost braces in \itemize; \value handles \item{}{} directly ``` -------------------------------- ### R Package Dependency Check: MOODE Pipe Operator Usage Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md A dependency check note for the 'MOODE' R package, indicating a missing R version dependency (R >= 4.1.0) because the package code uses the pipe operator (|>) or function shorthand (\(...\)) syntax, which were introduced in R 4.1.0. This highlights a common issue with R package compatibility and version requirements. ```R Missing dependency on R >= 4.1.0 because package code uses the pipe |> or function shorthand \(...\) syntax added in R 4.1.0. File(s) using such syntax: ‘Search.R’ ‘mood.R’ ``` -------------------------------- ### R Package Dependency Check for tglkmeans Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This log entry indicates a dependency problem for the `tglkmeans` package. It states that the `doRNG` namespace is declared in the `Imports` field but is not imported or used by the package's R code, suggesting that all declared imports should be actively used. ```R Namespace in Imports field not imported from: ‘doRNG’ All declared Imports should be used. ``` -------------------------------- ### R Package Dependency Check for survstan Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This snippet reports a dependency issue for the `survstan` package. It notes that `RcppParallel` and `rstantools` are listed in the `Imports` field of the `DESCRIPTION` file but are not actually imported or used within the package's R code, recommending that all declared imports should be utilized. ```R Namespaces in Imports field not imported from: ‘RcppParallel’ ‘rstantools’ All declared Imports should be used. ``` -------------------------------- ### R Dependency Check Note for baskexact Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This note indicates that the 'ggplot2' package is declared in the 'Imports' field of 'baskexact' but is not explicitly used within the package's R code. All declared imports should be utilized to avoid unnecessary dependencies. ```R Namespace in Imports field not imported from: ‘ggplot2’ All declared Imports should be used. ``` -------------------------------- ### C++ Specification Check Note Source: https://github.com/futureverse/dofuture/blob/develop/revdep/problems.md This snippet notes a C++ specification issue identified during package checks, specifically regarding C++11. It recommends dropping the C++11 specification unless it is absolutely essential for the package's functionality. ```C++ Specified C++11: please drop specification unless essential ``` -------------------------------- ### R.rsp Script to Clean Markdown Vignette Content Source: https://github.com/futureverse/dofuture/blob/develop/incl/OVERVIEW.md This R.rsp script reads a markdown file, typically a vignette, and performs text manipulation to clean its content. It identifies and removes all lines preceding the first H2 header (##) and all lines following the first horizontal rule (---), then outputs the remaining cleaned markdown. This process is useful for extracting the primary content body of a document, discarding boilerplate headers and footers. ```R <% ## Reuse the future vignette md <- R.rsp::rstring(file="vignettes/doFuture-1-overview.md.rsp", postprocess=FALSE) ## Drop the header, i.e. anything before the first "H2" header md <- unlist(strsplit(md, split="\n", fixed=TRUE)) row <- grep("^## ", md)[1] if (!is.na(row)) md <- md[-seq_len(row-1)] ## Drop the footer, i.e. anything after the first horizontal line row <- grep("^---", md)[1] if (!is.na(row)) md <- md[seq_len(row-1)] ## Output cat(md, sep="\n") %> ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.