<html><body><div>Brian - Get over yourself!  That was an A++ response in terms of being <span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">obnoxious, smug and condescending. </span>I wasn't looking for anyone to do any internet searches high atop their Ivory Tower, it was a simple question that I was hoping someone had a similar experience with.  Trust me, I've done plenty of searches on this topic and my "google fu" skills are on par with yours.  I saw the same inquiry you probably saw w/ your search results, but the user with my problem never confirmed if he figured it out despite asking a couple of times on the thread.  If he's asking the same follow-up question more than once then chances are he never got it working.  </div><div><br data-mce-bogus="1"></div><div>As far as "hijacking the thread" it was a simple post that seemed appropriate for the topic but I am so sorry if I offended you, or anyone else, for breaking the unwritten rules. Look, I've been an R user for 2.5 years but my skills are nowhere near 90%, hell maybe 100% of the people here -- if I were to post this as a standalone question there wouldn't be a single response.  Half the subscribers would be laughing behind their keyboard. Posting here is only a matter of last resort, so sometimes you gotta take your shot.  <br></div><div><br data-mce-bogus="1"></div><div>PS - I did figure it out though, all of the packages were properly installed so that wasn't the problem....and thankfully I'm not crazy!  But it was a simple fix in hindsight and I'm sure all of you experienced it at one point or another  </div><div><br data-mce-bogus="1"></div><div><br>On Sep 20, 2016, at 08:33 AM, "Brian G. Peterson" <brian@braverock.com> wrote:<br><br></div><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch"><span class="body-text-content">On Mon, 2016-09-19 at 23:08 +0000, Jason Hart wrote:<br><blockquote type="cite" class="quoted-plain-text">I've never been able to get portfolioanalytics to work for me. It</blockquote><blockquote type="cite" class="quoted-plain-text">looks like a nice little addition to the R arsenal but we just weren't</blockquote><blockquote type="cite" class="quoted-plain-text">meant to work together. I figured what the heck I'll try this code</blockquote><blockquote type="cite" class="quoted-plain-text">and I got the same error message I usually get:</blockquote><br><blockquote type="cite" class="quoted-plain-text">Error in optimize.portfolio(R = returns, portfolio = pspec,</blockquote><blockquote type="cite" class="quoted-plain-text">optimize_method = "pso", :</blockquote><blockquote type="cite" class="quoted-plain-text">unused arguments (R = returns, portfolio = pspec, optimize_method =</blockquote><blockquote type="cite" class="quoted-plain-text">"pso", trace = TRUE)</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">I've installed all the dependent (or at least I think I have) but to</blockquote><blockquote type="cite" class="quoted-plain-text">no avail. I installed pso, all the different ROI packages, Rcmdr.</blockquote><blockquote type="cite" class="quoted-plain-text">I've seen other people with the same issue but did not see a</blockquote><blockquote type="cite" class="quoted-plain-text">solution.</blockquote><br>Really? Which "other people"? Link? <br><br>My Google-fu only turned up one other instance of this error, and the<br>error was reportedly resolved by installing the dependencies.<br><br><blockquote type="cite" class="quoted-plain-text">Any help is much appreciated.</blockquote><br>Jason,<br><br>Please don't hijack the thread. People who use threaded mail readers<br>will have difficulty following or finding your question.<br><br>Assuming you used the script from the prior thread, I had no problem<br>running that code on multiple machines and R versions. <br><br>The error itself suggests that something is masking objects like<br>optimize.portfolio in your .GlobalEnv, but without more information<br>there's nothing to diagnose.<br><br>Please try to follow the posting guide:<br><br><a href="https://www.r-project.org/posting-guide.html" data-mce-href="https://www.r-project.org/posting-guide.html">https://www.r-project.org/posting-guide.html</a><br><br>At a minimum, please provide the output of <br><br>sessionInfo()<br><br>Regards,<br><br>Brian<br><br><br></span></div></div></blockquote></div></body></html>