CRAN Package Check Results for Package mixopt

Last updated on 2024-09-01 05:49:26 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.2 2.69 29.29 31.98 ERROR
r-devel-linux-x86_64-debian-gcc 0.1.2 2.01 21.96 23.97 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.2 55.85 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.2 54.24 ERROR
r-devel-windows-x86_64 0.1.2 3.00 54.00 57.00 OK
r-patched-linux-x86_64 0.1.2 3.03 27.89 30.92 ERROR
r-release-linux-x86_64 0.1.2 2.19 27.97 30.16 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 4.00 55.00 59.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 4.00 64.00 68.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.005583525 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.004692316 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.004628658 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.008077145 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.0004181862 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.001206636 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.001772165 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.003234863 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.00239253 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.002366304 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.004653692 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.0002381802 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.000638485 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.0007653236 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.06552076 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.06765008 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.04942989 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.07024646 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.001194 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.002203703 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.013345 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.01830554 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.01273513 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.01288605 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.02287507 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.006109238 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.001910925 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.007533312 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.005881071 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.004802465 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.004714489 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.008286715 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.0005056858 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.0010252 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.001750469 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.01017475 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.009095669 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.008888245 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.01639581 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.0004503727 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.001083136 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.001773119 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