=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-22-* to use the structure of the `optim()` call; r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd:23:* to provide for parameter scaling for all methods via `control$parscale`; r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-24-* to return a consistent result structure that as far as possible ############################################## r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-158-* Provide, if required, appropriate links to modified function and gradient r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd:159:routines that allow the parameter scaling `control$parscale` to be applied r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-160-if this funtionality is not present in the methods. To my knowledge, only the ############################################## r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-322- r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd:323:`optim()` uses `control$fnscale` to "scale" the value of the function or gradient computed by r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-324-`fn` or `gr` respectively. In practice, the only use for this scaling is to convert a ############################################## r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-336-translating or transforming the names and values to achieve the desired result. This is r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd:337:sometimes not possible precisely. A method which uses `control$trace = TRUE` (a logical r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-338-element) has only "on" or "off" for controlling output. Other methods use an integer ############################################## r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-346-Thus, if `print.level` is the desired control, and it more or less matches the `optimr()` r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd:347:`control$trace`, we need to set r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-348- ############################################## r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-352-``` r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd:353:After the method has run, we may need to reset `control$trace`. r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-354- ############################################## r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-412-set of triplets consisting of a method name (character), a function evaluation count and an iteration count. r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd:413:* the `control$maxit` and `control$maxfeval` are replaced, if present, with values from the `methcontrol` r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-414-argument list. ############################################## r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-616-many methods put the contols into separate parameters of their function call. For example, r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd:617:the `control$maxit` iteration limit is `iterlim` for the function `nlm()`. r-cran-optimx-2020-4.2+dfsg/vignettes/Extend-optimx.Rmd-618- ############################################## r-cran-optimx-2020-4.2+dfsg/vignettes/SNewton.Rmd-90- r-cran-optimx-2020-4.2+dfsg/vignettes/SNewton.Rmd:91:where c is some number less than 1. Typically $c = 1e-4 = 0.0001$. Note that the product r-cran-optimx-2020-4.2+dfsg/vignettes/SNewton.Rmd-92-of gradient times search vector is negative for any reasonable situation, since we are ############################################## r-cran-optimx-2020-4.2+dfsg/vignettes/SNewton.Rmd-131-than 1). If the Armijo condition is not met, we replace $step$ with $ r * step $ r-cran-optimx-2020-4.2+dfsg/vignettes/SNewton.Rmd:132:where $r$ is less than 1. Here we suggest `control$stepdec = 0.2`. We repeat until r-cran-optimx-2020-4.2+dfsg/vignettes/SNewton.Rmd-133-$x_t$ satisfies the Armijo condition or $x_t$ is essentially unchanged by the step. ############################################## r-cran-optimx-2020-4.2+dfsg/vignettes/SNewton.Rmd-139- r-cran-optimx-2020-4.2+dfsg/vignettes/SNewton.Rmd:140:where $d$ is the search direction. `control$offset = 100` is used. We could r-cran-optimx-2020-4.2+dfsg/vignettes/SNewton.Rmd-141-also, and almost equivalently, use the **R** `identical` function. ############################################## r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-22-* to use the structure of the `optim()` call; r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd:23:* to provide for parameter scaling for all methods via `control$parscale`; r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-24-* to return a consistent result structure that as far as possible ############################################## r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-158-* Provide, if required, appropriate links to modified function and gradient r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd:159:routines that allow the parameter scaling `control$parscale` to be applied r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-160-if this funtionality is not present in the methods. To my knowledge, only the ############################################## r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-322- r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd:323:`optim()` uses `control$fnscale` to "scale" the value of the function or gradient computed by r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-324-`fn` or `gr` respectively. In practice, the only use for this scaling is to convert a ############################################## r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-336-translating or transforming the names and values to achieve the desired result. This is r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd:337:sometimes not possible precisely. A method which uses `control$trace = TRUE` (a logical r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-338-element) has only "on" or "off" for controlling output. Other methods use an integer ############################################## r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-346-Thus, if `print.level` is the desired control, and it more or less matches the `optimr()` r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd:347:`control$trace`, we need to set r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-348- ############################################## r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-352-``` r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd:353:After the method has run, we may need to reset `control$trace`. r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-354- ############################################## r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-412-set of triplets consisting of a method name (character), a function evaluation count and an iteration count. r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd:413:* the `control$maxit` and `control$maxfeval` are replaced, if present, with values from the `methcontrol` r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-414-argument list. ############################################## r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-616-many methods put the contols into separate parameters of their function call. For example, r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd:617:the `control$maxit` iteration limit is `iterlim` for the function `nlm()`. r-cran-optimx-2020-4.2+dfsg/inst/doc/Extend-optimx.Rmd-618- ############################################## r-cran-optimx-2020-4.2+dfsg/inst/doc/SNewton.Rmd-90- r-cran-optimx-2020-4.2+dfsg/inst/doc/SNewton.Rmd:91:where c is some number less than 1. Typically $c = 1e-4 = 0.0001$. Note that the product r-cran-optimx-2020-4.2+dfsg/inst/doc/SNewton.Rmd-92-of gradient times search vector is negative for any reasonable situation, since we are ############################################## r-cran-optimx-2020-4.2+dfsg/inst/doc/SNewton.Rmd-131-than 1). If the Armijo condition is not met, we replace $step$ with $ r * step $ r-cran-optimx-2020-4.2+dfsg/inst/doc/SNewton.Rmd:132:where $r$ is less than 1. Here we suggest `control$stepdec = 0.2`. We repeat until r-cran-optimx-2020-4.2+dfsg/inst/doc/SNewton.Rmd-133-$x_t$ satisfies the Armijo condition or $x_t$ is essentially unchanged by the step. ############################################## r-cran-optimx-2020-4.2+dfsg/inst/doc/SNewton.Rmd-139- r-cran-optimx-2020-4.2+dfsg/inst/doc/SNewton.Rmd:140:where $d$ is the search direction. `control$offset = 100` is used. We could r-cran-optimx-2020-4.2+dfsg/inst/doc/SNewton.Rmd-141-also, and almost equivalently, use the **R** `identical` function. ############################################## r-cran-optimx-2020-4.2+dfsg/debian/tests/run-unit-test-5-if [ "$AUTOPKGTEST_TMP" = "" ] ; then r-cran-optimx-2020-4.2+dfsg/debian/tests/run-unit-test:6: AUTOPKGTEST_TMP=`mktemp -d /tmp/${debname}-test.XXXXXX` r-cran-optimx-2020-4.2+dfsg/debian/tests/run-unit-test-7- trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM