This uses implicit fortran conventions, that is integers for variables prefixed with i through n and reals for others

make_c_args(...)

Arguments

...

list of variable names, as is

Examples

make_c_args(no,ni,x,y,w,theta,ng,mg,aa,ne,nx,nlam,ulam,thr,maxit,verbose,ao,ia,kin,nlp,jerr)
#>  [1] "int *no"         "int *ni"         "double *x"       "double *y"      
#>  [5] "double *w"       "double *theta"   "int *ng"         "int *mg"        
#>  [9] "double *aa"      "int *ne"         "int *nx"         "int *nlam"      
#> [13] "double *ulam"    "double *thr"     "int *maxit"      "double *verbose"
#> [17] "double *ao"      "int *ia"         "int *kin"        "int *nlp"       
#> [21] "int *jerr"