<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Estimados<div><br></div><div>Encontré la configuración correcta, o por lo menos, modificando muy poco anda en mi computadora.</div><div><br></div><div>La solucion está en este sitio web. </div><div><div style="display: block;"><div style="-webkit-user-select: all; -webkit-user-drag: element; display: inline-block;" class="apple-rich-link" draggable="true" role="link" data-url="https://www.gormanalysis.com/blog/using-rcpp-in-xcode/"><a style="border-radius:10px;font-family:-apple-system, Helvetica, Arial, sans-serif;display:block;-webkit-user-select:none;width:300px;user-select:none;-webkit-user-modify:read-only;user-modify:read-only;overflow:hidden;text-decoration:none;" class="lp-rich-link" rel="nofollow" href="https://www.gormanalysis.com/blog/using-rcpp-in-xcode/" dir="ltr" role="button" draggable="false" width="300"><table style="table-layout:fixed;border-collapse:collapse;width:300px;background-color:#3199DC;font-family:-apple-system, Helvetica, Arial, sans-serif;" class="lp-rich-link-emailBaseTable" cellpadding="0" cellspacing="0" border="0" width="300"><tbody><tr><td vertical-align="center" align="center"><img style="width:300px;filter:brightness(0.97);height:247px;" width="300" height="247" draggable="false" class="lp-rich-link-mediaImage" alt="logo.png" src="cid:AAC50D79-BA5F-4571-9DE3-AD56D9F60BD3"></td></tr><tr><td vertical-align="center"><table bgcolor="#3199DC" cellpadding="0" cellspacing="0" width="300" style="table-layout:fixed;font-family:-apple-system, Helvetica, Arial, sans-serif;background-color:rgba(49, 153, 220, 1);-apple-color-filter:initial;" class="lp-rich-link-captionBar"><tbody><tr><td style="padding:8px 0px 8px 0px;" class="lp-rich-link-captionBar-textStackItem"><div style="max-width:100%;margin:0px 16px 0px 16px;overflow:hidden;" class="lp-rich-link-captionBar-textStack"><div style="word-wrap:break-word;font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-topCaption-leading"><a rel="nofollow" href="https://www.gormanalysis.com/blog/using-rcpp-in-xcode/" style="text-decoration: none" draggable="false"><font color="#FFFFFF" style="color: rgba(255, 255, 255, 0.847059);">Using Rcpp in Xcode</font></a></div><div style="word-wrap:break-word;font-weight:400;font-size:11px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-bottomCaption-leading"><a rel="nofollow" href="https://www.gormanalysis.com/blog/using-rcpp-in-xcode/" style="text-decoration: none" draggable="false"><font color="#FFFFFF" style="color: rgba(255, 255, 255, 0.54902);">gormanalysis.com</font></a></div></div></td></tr></tbody></table></td></tr></tbody></table></a></div></div></div><div style="display: block;"><br></div><div style="display: block;">Gracias por la sugerencias.</div><div><div><br><blockquote type="cite"><div>El 3 abr 2025, a las 6:25 a. m., Proyecto R-UCA <r-uca@uca.es> escribió:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">Buenas,</div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">No utilizo xcode, pero todos los compiladores tienen opciones para modificar la ruta de los encabezado y las librerías.</div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">Si no necesita librerías para compilar puede copiar el fichero de cabecera en la carpeta del programa o poner la ruta completa al fichero y cambiar los ángulos por comillas.</div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">Un saludo.</div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span></span></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">El mié, 02-04-2025 a las 18:06 -0300, Javier Marcuzzi escribió:</div><blockquote type="cite" style="margin: 0px 0px 0px 0.8ex; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(114, 159, 207); padding-left: 1ex;"><div>Estimados</div><div><br></div><div>Se me puso en la cabeza, hacer algo en C++ que ejecute un código R, nada complicado, experimentación.</div><div><br></div><div>Al respecto hay por ejemplo:</div><div><br></div><div><pre style="margin: 0px;">#include <RInside.h>

int main(int argc, char *argv[]) {
    RInside R(argc, argv);  // Inicializa R
    
    // Ejecutar una expresión R
    R.parseEvalQ("resultado <- sqrt(16)");
    
    // Obtener resultados desde R
    double resultado = R["resultado"];
    std::cout << "Resultado desde R: " << resultado << std::endl;

    return 0;
}</pre></div><div><br></div><div>El problema es que no logro configurar Xcode en c++ consola, para probar el código, en otras palabras, puedo ejecutar algunos programas simples que yo mismo me creo, pero no logro hacer que lea el encabezado, lógicamente, sin este no funciona.</div><div><br></div><div>¿Alguno pudo, puedo, o sabe como hacer en Xcode Mac ARM?</div><div><br></div><div>Las referencias a RInside son estas:</div><div><div style="display: block;"><div class="apple-rich-link" draggable="true" role="link" data-url="https://cran.r-project.org/web/packages/RInside/index.html" style="-webkit-user-select: all; -webkit-user-drag: element; display: inline-block;"><a class="lp-rich-link" rel="nofollow" href="https://urldefense.com/v3/__https://cran.r-project.org/web/packages/RInside/index.html__;!!D9dNQwwGXtA!WZ68ov-9iJPdj5gILbdhez-xXAD-SUQh5Lr3g-9Tp0M0Z3O0cPR_5W__cs32o9JhbEECbzi_GVB9wg3lTOYE8Eo$" dir="ltr" role="button" draggable="false" width="228" style="border-radius: 10px; font-family: -apple-system, Helvetica, Arial, sans-serif; display: block; -webkit-user-select: none; width: 228px; -webkit-user-modify: read-only; overflow: hidden; text-decoration: none;"><table class="lp-rich-link-emailBaseTable" cellpadding="0" cellspacing="0" border="0" width="228" style="table-layout: fixed; border-collapse: collapse; width: 228px; background-color: rgb(8, 61, 127); font-family: -apple-system, Helvetica, Arial, sans-serif;"><tbody><tr><td vertical-align="center" align="center"><span id="cid:75BCCF41-BA31-4137-945C-568F9EA931E3"><CRANlogo.png></span></td></tr><tr><td vertical-align="center"><table bgcolor="#083D7F" cellpadding="0" cellspacing="0" width="228" class="lp-rich-link-captionBar" style="table-layout: fixed; font-family: -apple-system, Helvetica, Arial, sans-serif; background-color: rgb(8, 61, 127); -apple-color-filter: initial;"><tbody><tr><td class="lp-rich-link-captionBar-textStackItem" style="padding: 8px 0px;"><div class="lp-rich-link-captionBar-textStack" style="max-width: 100%; margin: 0px 16px; overflow: hidden;"><div class="lp-rich-link-captionBar-textStack-topCaption-leading" style="overflow-wrap: break-word; font-weight: 500; font-size: 12px; overflow: hidden; text-overflow: ellipsis; text-align: left;"><a rel="nofollow" href="https://urldefense.com/v3/__https://cran.r-project.org/web/packages/RInside/index.html__;!!D9dNQwwGXtA!WZ68ov-9iJPdj5gILbdhez-xXAD-SUQh5Lr3g-9Tp0M0Z3O0cPR_5W__cs32o9JhbEECbzi_GVB9wg3lTOYE8Eo$" draggable="false" style="text-decoration: none;"><font color="#FFFFFF" style="color: rgba(255, 255, 255, 0.847);">RInside: C++ Classes to Embed R in C++ (and C) Applications</font></a></div><div class="lp-rich-link-captionBar-textStack-bottomCaption-leading" style="overflow-wrap: break-word; font-weight: 400; font-size: 11px; overflow: hidden; text-overflow: ellipsis; text-align: left;"><a rel="nofollow" href="https://urldefense.com/v3/__https://cran.r-project.org/web/packages/RInside/index.html__;!!D9dNQwwGXtA!WZ68ov-9iJPdj5gILbdhez-xXAD-SUQh5Lr3g-9Tp0M0Z3O0cPR_5W__cs32o9JhbEECbzi_GVB9wg3lTOYE8Eo$" draggable="false" style="text-decoration: none;"><font color="#FFFFFF" style="color: rgba(255, 255, 255, 0.55);">cran.r-project.org</font></a></div></div></td></tr></tbody></table></td></tr></tbody></table></a></div></div></div><div><div style="display: block;"><div class="apple-rich-link" draggable="true" role="link" data-url="https://github.com/eddelbuettel/rinside/tree/master" style="-webkit-user-select: all; -webkit-user-drag: element; display: inline-block;"><a class="lp-rich-link" rel="nofollow" href="https://urldefense.com/v3/__https://github.com/eddelbuettel/rinside/tree/master__;!!D9dNQwwGXtA!WZ68ov-9iJPdj5gILbdhez-xXAD-SUQh5Lr3g-9Tp0M0Z3O0cPR_5W__cs32o9JhbEECbzi_GVB9wg3ll92CibM$" dir="ltr" role="button" draggable="false" width="300" style="border-radius: 10px; font-family: -apple-system, Helvetica, Arial, sans-serif; display: block; -webkit-user-select: none; width: 300px; -webkit-user-modify: read-only; overflow: hidden; text-decoration: none;"><table class="lp-rich-link-emailBaseTable" cellpadding="0" cellspacing="0" border="0" width="300" style="table-layout: fixed; border-collapse: collapse; width: 300px; background-color: rgb(230, 230, 230); font-family: -apple-system, Helvetica, Arial, sans-serif;"><tbody><tr><td vertical-align="center" align="center"><span id="cid:D2A060C5-B7BB-4B77-A30C-C272A6B6EE71"><rinside.png></span></td></tr><tr><td vertical-align="center"><table bgcolor="#E6E6E6" cellpadding="0" cellspacing="0" width="300" class="lp-rich-link-captionBar" style="table-layout: fixed; font-family: -apple-system, Helvetica, Arial, sans-serif; background-color: rgb(230, 230, 230); -apple-color-filter: initial;"><tbody><tr><td class="lp-rich-link-captionBar-textStackItem" style="padding: 8px 0px;"><div class="lp-rich-link-captionBar-textStack" style="max-width: 100%; margin: 0px 16px; overflow: hidden;"><div class="lp-rich-link-captionBar-textStack-topCaption-leading" style="overflow-wrap: break-word; font-weight: 500; font-size: 12px; overflow: hidden; text-overflow: ellipsis; text-align: left;"><a rel="nofollow" href="https://urldefense.com/v3/__https://github.com/eddelbuettel/rinside/tree/master__;!!D9dNQwwGXtA!WZ68ov-9iJPdj5gILbdhez-xXAD-SUQh5Lr3g-9Tp0M0Z3O0cPR_5W__cs32o9JhbEECbzi_GVB9wg3ll92CibM$" draggable="false" style="text-decoration: none;"><font color="#272727" style="">eddelbuettel/rinside: Seamless embedding of R in C++ programs</font></a></div><div class="lp-rich-link-captionBar-textStack-bottomCaption-leading" style="overflow-wrap: break-word; font-weight: 400; font-size: 11px; overflow: hidden; text-overflow: ellipsis; text-align: left;"><a rel="nofollow" href="https://urldefense.com/v3/__https://github.com/eddelbuettel/rinside/tree/master__;!!D9dNQwwGXtA!WZ68ov-9iJPdj5gILbdhez-xXAD-SUQh5Lr3g-9Tp0M0Z3O0cPR_5W__cs32o9JhbEECbzi_GVB9wg3ll92CibM$" draggable="false" style="text-decoration: none;"><font color="#808080" style="">github.com</font></a></div></div></td></tr></tbody></table></td></tr></tbody></table></a></div></div></div><div style="display: block;"><br></div><div style="display: block;">Gracias</div><div style="display: block;"><br></div><div style="display: block;">Javier Rubén Marcuzzi</div><div>_______________________________________________<br></div><div>R-help-es mailing list<br></div><div><a href="mailto:R-help-es@r-project.org">R-help-es@r-project.org</a><br></div><div><a href="https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help-es__;!!D9dNQwwGXtA!WZ68ov-9iJPdj5gILbdhez-xXAD-SUQh5Lr3g-9Tp0M0Z3O0cPR_5W__cs32o9JhbEECbzi_GVB9wg3lOxbHFH8$">https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help-es__;!!D9dNQwwGXtA!WZ68ov-9iJPdj5gILbdhez-xXAD-SUQh5Lr3g-9Tp0M0Z3O0cPR_5W__cs32o9JhbEECbzi_GVB9wg3lOxbHFH8$</a> <br></div></blockquote><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">R-help-es mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><a href="mailto:R-help-es@r-project.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">R-help-es@r-project.org</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><a href="https://stat.ethz.ch/mailman/listinfo/r-help-es" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">https://stat.ethz.ch/mailman/listinfo/r-help-es</a></div></blockquote></div><br></div></body></html>