CRAN Package Check Results for Package mixopt

Last updated on 2024-09-10 07:49:52 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.2 2.49 29.21 31.70 ERROR
r-devel-linux-x86_64-debian-gcc 0.1.2 1.89 22.04 23.93 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.2 55.32 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.2 49.48 ERROR
r-devel-windows-x86_64 0.1.2 3.00 55.00 58.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.72 28.23 30.95 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 3.00 53.00 56.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 5.00 62.00 67.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.00599122 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.005135536 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.005449533 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.009520769 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.0005688667 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.001088619 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.001873016 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.008126497 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.01141405 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.007398129 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.008452415 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.0003581047 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.0007212162 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.001203537 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.02248526 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.02407789 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.007906437 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.01366639 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.0008645058 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.00168252 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.002986908 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.00579834 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.004846334 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.004865885 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.00845933 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.0005459785 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.001125813 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.001802921 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