<div dir="ltr">Hi Dirk,<div><br></div><div>thanks for the quick reply. Running the RcppNLoptExample ran also on my side, however running my code from the repo resulted in an error. I was so used to having a complicated setup when using nlopt in my C++ code from before that In over-complicated things. <br></div><div><br></div><div>Thanks for pushing me towards the solution. </div><div><br></div><div>Best</div><div>Simon</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 18. Aug. 2021 um 17:18 Uhr schrieb Dirk Eddelbuettel <<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 18 August 2021 at 16:36, Simon Zehnder wrote:<br>
| I am using R 4.0.5 on a Fedora 34 System, Rcpp 1.0.6 and nloptr 1.2.2.2.<br>
<br>
Works here (Ubuntu 21.04, Rcpp 1.0.7) (see [1] below)<br>
<br>
Works at CRAN (see [2] below)<br>
<br>
Works at universe (see [3] below)<br>
<br>
I would suspect the error is at your end.<br>
<br>
Dirk<br>
<br>
[1] Running via rcc.r from littler wrapping rcmdcheck<br>
<br>
edd@rob:~/git/rcppnloptexample(master)$ rcc.r RcppNLoptExample_0.1.0.tar.gz <br>
── R CMD check ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<br>
─  using log directory ‘/tmp/file2b4b7523aee48f/RcppNLoptExample.Rcheck’<br>
─  using R version 4.1.1 (2021-08-10)                                                                    <br>
─  using platform: x86_64-pc-linux-gnu (64-bit)<br>
─  using session charset: UTF-8   <br>
✔  checking for file ‘RcppNLoptExample/DESCRIPTION’ ...<br>
─  checking extension type ... Package<br>
─  this is package ‘RcppNLoptExample’ version ‘0.1.0’<br>
─  package encoding: UTF-8<br>
✔  checking package namespace information ...<br>
✔  checking package dependencies (803ms)<br>
✔  checking package namespace information ...<br>
✔  checking package dependencies (803ms)<br>
✔  checking if this is a source package<br>
✔  checking if there is a namespace<br>
✔  checking for executable files ...<br>
✔  checking for hidden files and directories<br>
✔  checking for portable file names<br>
✔  checking for sufficient/correct file permissions<br>
✔  checking whether package ‘RcppNLoptExample’ can be installed (6.3s)<br>
✔  checking installed package size ...<br>
✔  checking package directory<br>
✔  checking DESCRIPTION meta-information ...<br>
✔  checking top-level files<br>
✔  checking for left-over files<br>
✔  checking index information<br>
✔  checking package subdirectories ...<br>
✔  checking R files for non-ASCII characters ...<br>
✔  checking R files for syntax errors ...<br>
✔  checking whether the package can be loaded ...<br>
✔  checking whether the package can be loaded with stated dependencies ...<br>
✔  checking whether the package can be unloaded cleanly ...<br>
✔  checking whether the namespace can be loaded with stated dependencies ...<br>
✔  checking whether the namespace can be unloaded cleanly ...<br>
✔  checking loading without being on the library search path ...<br>
✔  checking dependencies in R code ...<br>
✔  checking S3 generic/method consistency (430ms)<br>
✔  checking replacement functions ...<br>
✔  checking foreign function calls ...<br>
✔  checking R code for possible problems (931ms)<br>
✔  checking Rd files ...<br>
✔  checking Rd metadata ...<br>
✔  checking Rd cross-references ...<br>
✔  checking for missing documentation entries ...<br>
✔  checking for code/documentation mismatches (679ms)<br>
✔  checking Rd \usage sections (549ms)<br>
✔  checking Rd contents ...<br>
✔  checking for unstated dependencies in examples ...<br>
✔  checking line endings in C/C++/Fortran sources/headers<br>
✔  checking line endings in Makefiles<br>
✔  checking compilation flags in Makevars ...<br>
✔  checking for GNU extensions in Makefiles<br>
✔  checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS)<br>
✔  checking use of PKG_*FLAGS in Makefiles<br>
✔  checking compilation flags used<br>
✔  checking compiled code ...<br>
✔  checking examples (424ms)<br>
✔  checking PDF version of manual (2.5s)<br>
<br>
<br>
edd@rob:~/git/rcppnloptexample(master)$ <br>
<br>
[2] <a href="https://cloud.r-project.org/web/checks/check_results_RcppNLoptExample.html" rel="noreferrer" target="_blank">https://cloud.r-project.org/web/checks/check_results_RcppNLoptExample.html</a><br>
<br>
[3] <a href="https://eddelbuettel.r-universe.dev/ui#builds" rel="noreferrer" target="_blank">https://eddelbuettel.r-universe.dev/ui#builds</a> and also <br>
    <a href="https://github.com/r-universe/eddelbuettel/actions/runs/1047649769" rel="noreferrer" target="_blank">https://github.com/r-universe/eddelbuettel/actions/runs/1047649769</a><br>
<br>
<br>
| <br>
| Thanks for any time and efforts you spent on my problem.<br>
| Simon<br>
| _______________________________________________<br>
| Rcpp-devel mailing list<br>
| <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
| <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
-- <br>
<a href="https://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">https://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
</blockquote></div>