CRAN Package Check Results for Package mixopt

Last updated on 2024-09-07 12:50:44 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.2 2.48 29.21 31.69 ERROR
r-devel-linux-x86_64-debian-gcc 0.1.2 1.97 22.29 24.26 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.2 55.32 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.2 54.34 ERROR
r-devel-windows-x86_64 0.1.2 3.00 57.00 60.00 OK
r-patched-linux-x86_64 0.1.2 2.84 28.45 31.29 ERROR
r-release-linux-x86_64 0.1.2 2.38 27.96 30.34 ERROR
r-release-macos-arm64 0.1.2 21.00 OK
r-release-macos-x86_64 0.1.2 48.00 OK
r-release-windows-x86_64 0.1.2 5.00 69.00 74.00 OK
r-oldrel-macos-arm64 0.1.2 22.00 OK
r-oldrel-macos-x86_64 0.1.2 31.00 OK
r-oldrel-windows-x86_64 0.1.2 3.00 60.00 63.00 OK

Additional issues

noSuggests

Check Details

Version: 0.1.2
Check: package dependencies
Result: NOTE Package suggested but not available for checking: ‘ContourFunctions’ Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 0.1.2
Check: examples
Result: ERROR Running examples in ‘mixopt-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: mixopt > ### Title: Mixed variable optimization using coordinate descent > ### Aliases: mixopt mixopt_blockcd mixopt_coorddesc mixopt_multistart > > ### ** Examples > > # Simple 1D example > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.007041931 secs > # With gradient (isn't faster) > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}, + gr=function(x) {-2*(4.5-x[1])}) $par [1] 4.5 $val [1] 0 $counts function gradient 5 4 $runtime Time difference of 0.006741285 secs > > # 1D discrete ordered > mixopt_blockcd(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.006710768 secs > > # 2D: one continuous, one factor > mixopt_blockcd(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.01161194 secs > # Simple 1D example > mixopt_coorddesc(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.0006673336 secs > > # 1D discrete ordered > mixopt_coorddesc(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.001297712 secs > > # 2D: one continuous, one factor > mixopt_coorddesc(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.002334118 secs > # 2D > library(ggplot2) > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > f6 <- function(x) {-(-x[1]*.5*sin(.5*x[1])*1 - 1e-2*x[2]^2 + + .2*x[1] - .3*x[2])} > ContourFunctions::cf_func(f6, xlim=c(0,100), ylim=c(-100,100)) Error in loadNamespace(x) : there is no package called ‘ContourFunctions’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.1.2
Check: examples
Result: ERROR Running examples in ‘mixopt-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: mixopt > ### Title: Mixed variable optimization using coordinate descent > ### Aliases: mixopt mixopt_blockcd mixopt_coorddesc mixopt_multistart > > ### ** Examples > > # Simple 1D example > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.003867149 secs > # With gradient (isn't faster) > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}, + gr=function(x) {-2*(4.5-x[1])}) $par [1] 4.5 $val [1] 0 $counts function gradient 5 4 $runtime Time difference of 0.00287199 secs > > # 1D discrete ordered > mixopt_blockcd(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.003040075 secs > > # 2D: one continuous, one factor > mixopt_blockcd(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.005049944 secs > # Simple 1D example > mixopt_coorddesc(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.0003039837 secs > > # 1D discrete ordered > mixopt_coorddesc(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.0006446838 secs > > # 2D: one continuous, one factor > mixopt_coorddesc(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.001093388 secs > # 2D > library(ggplot2) > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > f6 <- function(x) {-(-x[1]*.5*sin(.5*x[1])*1 - 1e-2*x[2]^2 + + .2*x[1] - .3*x[2])} > ContourFunctions::cf_func(f6, xlim=c(0,100), ylim=c(-100,100)) Error in loadNamespace(x) : there is no package called ‘ContourFunctions’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.1.2
Check: examples
Result: ERROR Running examples in ‘mixopt-Ex.R’ failed The error most likely occurred in: > ### Name: mixopt > ### Title: Mixed variable optimization using coordinate descent > ### Aliases: mixopt mixopt_blockcd mixopt_coorddesc mixopt_multistart > > ### ** Examples > > # Simple 1D example > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.01472306 secs > # With gradient (isn't faster) > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}, + gr=function(x) {-2*(4.5-x[1])}) $par [1] 4.5 $val [1] 0 $counts function gradient 5 4 $runtime Time difference of 0.01221347 secs > > # 1D discrete ordered > mixopt_blockcd(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.009015322 secs > > # 2D: one continuous, one factor > mixopt_blockcd(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.01519775 secs > # Simple 1D example > mixopt_coorddesc(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.001007318 secs > > # 1D discrete ordered > mixopt_coorddesc(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.001862526 secs > > # 2D: one continuous, one factor > mixopt_coorddesc(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.003410816 secs > # 2D > library(ggplot2) > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > f6 <- function(x) {-(-x[1]*.5*sin(.5*x[1])*1 - 1e-2*x[2]^2 + + .2*x[1] - .3*x[2])} > ContourFunctions::cf_func(f6, xlim=c(0,100), ylim=c(-100,100)) Error in loadNamespace(x) : there is no package called ‘ContourFunctions’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.1.2
Check: examples
Result: ERROR Running examples in ‘mixopt-Ex.R’ failed The error most likely occurred in: > ### Name: mixopt > ### Title: Mixed variable optimization using coordinate descent > ### Aliases: mixopt mixopt_blockcd mixopt_coorddesc mixopt_multistart > > ### ** Examples > > # Simple 1D example > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.09971619 secs > # With gradient (isn't faster) > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}, + gr=function(x) {-2*(4.5-x[1])}) $par [1] 4.5 $val [1] 0 $counts function gradient 5 4 $runtime Time difference of 0.05805683 secs > > # 1D discrete ordered > mixopt_blockcd(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.06876802 secs > > # 2D: one continuous, one factor > mixopt_blockcd(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.1115475 secs > # Simple 1D example > mixopt_coorddesc(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.0009741783 secs > > # 1D discrete ordered > mixopt_coorddesc(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.00209403 secs > > # 2D: one continuous, one factor > mixopt_coorddesc(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.02644682 secs > # 2D > library(ggplot2) > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > f6 <- function(x) {-(-x[1]*.5*sin(.5*x[1])*1 - 1e-2*x[2]^2 + + .2*x[1] - .3*x[2])} > ContourFunctions::cf_func(f6, xlim=c(0,100), ylim=c(-100,100)) Error in loadNamespace(x) : there is no package called ‘ContourFunctions’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.1.2
Check: examples
Result: ERROR Running examples in ‘mixopt-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: mixopt > ### Title: Mixed variable optimization using coordinate descent > ### Aliases: mixopt mixopt_blockcd mixopt_coorddesc mixopt_multistart > > ### ** Examples > > # Simple 1D example > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.005879641 secs > # With gradient (isn't faster) > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}, + gr=function(x) {-2*(4.5-x[1])}) $par [1] 4.5 $val [1] 0 $counts function gradient 5 4 $runtime Time difference of 0.005782127 secs > > # 1D discrete ordered > mixopt_blockcd(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.005102158 secs > > # 2D: one continuous, one factor > mixopt_blockcd(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.008301497 secs > # Simple 1D example > mixopt_coorddesc(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.0005509853 secs > > # 1D discrete ordered > mixopt_coorddesc(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.001064777 secs > > # 2D: one continuous, one factor > mixopt_coorddesc(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.004943371 secs > # 2D > library(ggplot2) > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > f6 <- function(x) {-(-x[1]*.5*sin(.5*x[1])*1 - 1e-2*x[2]^2 + + .2*x[1] - .3*x[2])} > ContourFunctions::cf_func(f6, xlim=c(0,100), ylim=c(-100,100)) Error in loadNamespace(x) : there is no package called ‘ContourFunctions’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavor: r-patched-linux-x86_64

Version: 0.1.2
Check: examples
Result: ERROR Running examples in ‘mixopt-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: mixopt > ### Title: Mixed variable optimization using coordinate descent > ### Aliases: mixopt mixopt_blockcd mixopt_coorddesc mixopt_multistart > > ### ** Examples > > # Simple 1D example > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.006380558 secs > # With gradient (isn't faster) > mixopt_blockcd(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}, + gr=function(x) {-2*(4.5-x[1])}) $par [1] 4.5 $val [1] 0 $counts function gradient 5 4 $runtime Time difference of 0.005530357 secs > > # 1D discrete ordered > mixopt_blockcd(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.005462885 secs > > # 2D: one continuous, one factor > mixopt_blockcd(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.008902311 secs > # Simple 1D example > mixopt_coorddesc(par=list(mopar_cts(2,8)), fn=function(x) {(4.5-x[1])^2}) $par [1] 4.5 $val [1] 0 $counts function gradient 13 0 $runtime Time difference of 0.000576973 secs > > # 1D discrete ordered > mixopt_coorddesc(par=list(mopar_ordered(100:10000)), + fn=function(x) {(x[1] - 500.3)^2}) $par [1] 500 $val [1] 0.09 $counts function gradient 42 0 $runtime Time difference of 0.001088858 secs > > # 2D: one continuous, one factor > mixopt_coorddesc(par=list(mopar_cts(2,8), mopar_unordered(letters[1:6])), + fn=function(x) {ifelse(x[2] == 'b', -1, 0) + + (4.5-x[1])^2}) $par mixopt_list: [1] 4.5 b $val [1] -1 $counts function gradient 26 0 $runtime Time difference of 0.00186348 secs > # 2D > library(ggplot2) > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > f6 <- function(x) {-(-x[1]*.5*sin(.5*x[1])*1 - 1e-2*x[2]^2 + + .2*x[1] - .3*x[2])} > ContourFunctions::cf_func(f6, xlim=c(0,100), ylim=c(-100,100)) Error in loadNamespace(x) : there is no package called ‘ContourFunctions’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavor: r-release-linux-x86_64