@_stla can you add references to the methods used? Also, the appearance of the code reminds Fortran/C… Be careful if you are copying/pasting code from other software projects with specific software license terms.
The original code is written in Matlab and Fortran, written by Alan Genz. The R package has been written by someone else, John P. Nolan. He mentions Alan Genz in the description file of the package.
When I do a R package whose code is a translation from another language, I add the original author name in the authors list, and I specify he/she is copyright holder. Maybe I should do that for my Julia package. Where can I add a sentence like “Code adapted from …”?
The license of the R package SimplicialCubature is GPL >= 2.
Take a look at the license text, it usually tells you what to do. In any case, you can always contact the person to ask them how they want to be credited, i’m sure they will be pleased their code is ported to another language.
As far as I understand your code must also be GPL as code derived from GPL. That is a very important information as many Julia devs (myself included) cannot afford the terms of GPL.
Might also be good to provide an exact reference, typically people don’t write a single piece of code ever. BTW, is that the same algorithm already provided by several different packages