<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Jay,<br>
      <br>
      Thank you. <br>
      <br>
      Yeah, but as (
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <a
href="http://www.boost.org/doc/libs/1_54_0/more/getting_started/unix-variants.html#header-only-libraries">http://www.boost.org/doc/libs/1_54_0/more/getting_started/unix-variants.html#header-only-libraries</a>
      ) said, Boost.Thread <i>must</i> be built separately.<br>
      <br>
      <br>
      <br>
      On 11/02/2013 11:07 PM, Jay Emerson wrote:<br>
    </div>
    <blockquote
cite="mid:CALbRwZYSot0aZ1GNiOFZg--Cz8bfh63-dLsBzKYhd2atravPGg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Simon,
        <div><br>
        </div>
        <div style="">If Boost.Thread is only headers, it would be a
          candidate to include in package BH.  This would greatly
          simplify life for you and the users of your package.</div>
        <div style=""><br>
        </div>
        <div style="">Jay</div>
        <div style=""><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Sat, Nov 2, 2013 at 9:54 AM, Simon <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:simonqijiezhao@gmail.com" target="_blank">simonqijiezhao@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
            <br>
            Recently, I made an R package that used the C++ library
            Boost.Thread (<a moz-do-not-send="true"
              href="http://www.boost.org/doc/libs/1_54_0/doc/html/thread.html"
              target="_blank">http://www.boost.org/doc/libs/1_54_0/doc/html/thread.html</a>)
            for multithreading.  Previously, I have posted a question at
            stackoverflow (<a moz-do-not-send="true"
href="http://stackoverflow.com/questions/19651954/is-it-possible-to-build-an-r-package-which-use-rcpp-and-boost-thread-on-http"
              target="_blank">http://stackoverflow.com/questions/19651954/is-it-possible-to-build-an-r-package-which-use-rcpp-and-boost-thread-on-http</a>),
            but now my questions becomes:<br>
            <br>
            1) if I want to upload my package onto CRAN, what am I
            supposed to do with Boost.Thread?<br>
            <br>
            Or<br>
            <br>
            2) I want to share my package with others, Must it be
            submitted to CRAN? I am not an expert, but I am trying to
            make my package to be used by the most, so I encounter these
            problem.<br>
            <br>
            3) Boost is a third party library, and the
            separately-compiled library Boost.Thread is used by my
            package.  To make a package stand-alone, the best way I can
            imagine is to include the the library source files under my
            package's src directory.  What if I just publish my package,
            and tell users they should install Boost before their use of
            my package?  Initially, I just want to use what I know about
            to make an R package that everyone can use, however, I found
            that to make the most to use my package, there are a lot to
            consider, though under Ubuntu, that's a lot easier, an
            apt-get command will install the Boost.  The question on<br>
            stackoverflow (<a moz-do-not-send="true"
href="http://stackoverflow.com/questions/19651954/is-it-possible-to-build-an-r-package-which-use-rcpp-and-boost-thread-on-http"
              target="_blank">http://stackoverflow.com/questions/19651954/is-it-possible-to-build-an-r-package-which-use-rcpp-and-boost-thread-on-http</a>)
            is about Windows, from the answer I am not going to struggle
            to provide support for Windows, at least now I suppose.  Is
            it a common practice for the user themselves to install a
            third party library like Boost.Thread?<br>
            <br>
            <br>
            Best regards,<br>
            Simon<br>
            <br>
            _______________________________________________<br>
            Rcpp-devel mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
            <a moz-do-not-send="true"
href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel"
              target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        John W. Emerson (Jay)<br>
        Associate Professor of Statistics, Adjunct, and Director of
        Graduate Studies<br>
        Department of Statistics<br>
        Yale University<br>
        <a moz-do-not-send="true" href="http://www.stat.yale.edu/%7Ejay"
          target="_blank">http://www.stat.yale.edu/~jay</a>
      </div>
    </blockquote>
    <br>
  </body>
</html>