Hi there: ? I am practicing the new R package DEoptim and following the paper titled ?Large-scale portfolio optimization with DEoptim? as attached. ? I am wondering if there is error in this package or else because when I tried the commands listed in Section 6. Portfolio optimization with DEoptim but encountered some error message as listed below: Error in NextMethod(.Generic) : dims [product 121] do not match the length of object [40401] Also : Warning message: In `-.default`(0.5 * dmvnorm(x, c(-3, -3)) + 0.5 * dmvnorm(x, c(3,? : ??longer object length is not a multiple of shorter object length ? Could somebody share some hint or help? ? Thank you for your kind consideration and response. ? Wei-han Liu -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111214/87045804/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: Large-scale portfolio optimization with DEoptim.pdf Type: application/pdf Size: 139438 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111214/87045804/attachment.pdf>
(no subject)
8 messages · Wei-han Liu, Longo, EMLL (Eduardo), John Laing +3 more
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111214/6afc9954/attachment.pl>
Hi Eduardo,
Apologies, but my Portuguese (?) is a bit rusty. If you can
temporarily switch the language to English that would make it easier
for me to understand the error messages.
Also, please run these commands and send the results:
sessionInfo()
installed.packages()[c("rJava", "RBloomberg"), ]
Thanks,
John
On Wed, Dec 14, 2011 at 9:22 AM, Longo, EMLL (Eduardo)
<Eduardo.Longo at rabobank.com> wrote:
Hi,
I am having some troubles installing the Rbloomberg package.
When I try to run library(Rbloomberg) I get the following message:
Carregando pacotes exigidos: rJava
Error : .onLoad falhou em loadNamespace() para 'rJava', detalhes:
?chamada: stop("No CurrentVersion entry in '", key, "'! Try re-installing Java and make sure R and Java have matching architectures.")
?erro: objeto 'key' n?o encontrado
Al?m disso: Mensagens de aviso perdidas:
pacote 'rJava' foi compilado na vers?o do R 2.13.2
Erro: pacote 'rJava' n?o p?de ser carregado
I don?t have any idea how to solve that. Anyone can help me ?
Thanks in advance
Eduardo Longo
_____________________________________________________________ This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. _____________________________________________________________ ? ? ? ?[[alternative HTML version deleted]] _______________________________________________ R-SIG-Finance at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. If you want to post, subscribe first. -- Also note that this is not the r-help list where general R questions should go.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111214/d4283a49/attachment.pl>
It seems to be a Java installation problem. I had similar problems. On my architecture (Win 7 64 bit), I firstly installed jre 1.6 64 bit, then R version 2.14, then installed rJava and RBloomberg. On Wed, Dec 14, 2011 at 4:18 PM, Ulrich Staudinger <
ustaudinger at activequant.org> wrote:
Google translator http://translate.google.com/#auto says: Loading required package: rJava Error:. OnLoad failed in loadNamespace () to 'rJava', details: call: stop ("No entry in CurrentVersion", "key" '! Try re-installing Java and make sure Java and R have matching architectures. ") error: object 'key' not found In addition: Warning messages lost: package 'rJava' was compiled in version 2.13.2 of the R Error: package 'rJava' could not be loaded On Wed, Dec 14, 2011 at 3:34 PM, John Laing <john.laing at gmail.com> wrote:
Hi Eduardo,
Apologies, but my Portuguese (?) is a bit rusty. If you can
temporarily switch the language to English that would make it easier
for me to understand the error messages.
Also, please run these commands and send the results:
sessionInfo()
installed.packages()[c("rJava", "RBloomberg"), ]
Thanks,
John
On Wed, Dec 14, 2011 at 9:22 AM, Longo, EMLL (Eduardo)
<Eduardo.Longo at rabobank.com> wrote:
Hi,
I am having some troubles installing the Rbloomberg package.
When I try to run library(Rbloomberg) I get the following message:
Carregando pacotes exigidos: rJava
Error : .onLoad falhou em loadNamespace() para 'rJava', detalhes:
chamada: stop("No CurrentVersion entry in '", key, "'! Try
re-installing Java and make sure R and Java have matching
architectures.")
erro: objeto 'key' n?o encontrado Al?m disso: Mensagens de aviso perdidas: pacote 'rJava' foi compilado na vers?o do R 2.13.2 Erro: pacote 'rJava' n?o p?de ser carregado I don?t have any idea how to solve that. Anyone can help me ? Thanks in advance Eduardo Longo
_____________________________________________________________ This email (including any attachments to it) is confidential, legally
privileged, subject to copyright and is sent for the personal attention
of
the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have
taken
reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on
the
basis of the information provided in this email or its attachments,
unless
that information is subsequently confirmed in writing.
_____________________________________________________________
[[alternative HTML version deleted]]
_______________________________________________
R-SIG-Finance at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions
should go.
_______________________________________________ R-SIG-Finance at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. If you want to post, subscribe first. -- Also note that this is not the r-help list where general R questions should go.
-- Ulrich Staudinger *CEO* <http://goog_958005736>http://www.activequant.com Connect online: https://www.xing.com/profile/Ulrich_Staudinger [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Finance at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. If you want to post, subscribe first. -- Also note that this is not the r-help list where general R questions should go.
*Jacopo Anselmi* Chief Data Scientist Mob; +39 349 507 8312 www.moneyfarm.com Seguici su Twitter! <http://www.twitter.com/getmoneyfarm> Leggi il nostro blog! <http://www.moneyfarm.com/blog> -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111214/24a2c8ca/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 664 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111214/24a2c8ca/attachment.gif>
On Wed, Dec 14, 2011 at 5:25 AM, Wei-han Liu <weihanliu2002 at yahoo.com> wrote:
Hi there: I am practicing the new R package DEoptim and following the paper titled ?Large-scale portfolio optimization with DEoptim? as attached.
No need to attach a paper that's provided in the package.
I am wondering if there is error in this package or else because when I tried the commands listed in Section 6. Portfolio optimization with DEoptim but encountered some error message as listed below: Error in NextMethod(.Generic) : dims [product 121] do not match the length of object [40401] Also : Warning message: In `-.default`(0.5 * dmvnorm(x, c(-3, -3)) + 0.5 * dmvnorm(x, c(3,? : ??longer object length is not a multiple of shorter object length Could somebody share some hint or help?
You need to provide a lot more information for anyone to help. See the posting guide, especially the section on "Surprising behavior and bugs". http://www.r-project.org/posting-guide.html There are 4 blocks of commands in Section 6 of the paper. You need to tell us which commands create the error.
Thank you for your kind consideration and response. Wei-han Liu
Best, -- Joshua Ulrich | FOSS Trading: www.fosstrading.com
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111214/7b6f6545/attachment.pl>
Please copy the list so others can benefit.
On Wed, Dec 14, 2011 at 7:02 PM, Wei-han Liu <weihanliu2002 at yahoo.com> wrote:
Thanks for your prompt reply. It get stuck in the first block of the commands listed in Section 6. It works fine before that block.
"Gets stuck" is not an error. The first block of code in Section 6 takes a long time to run (16 minutes on a 2.2Ghz processor) and is currently running fine on my laptop. You still have not followed the posting guide. As I asked in my previous email, please read and follow the instructions in the "Surprising behavior and bugs" section of the posting guide.
Wei-han
Best, -- Joshua Ulrich | FOSS Trading: www.fosstrading.com
________________________________ From: Joshua Ulrich <josh.m.ulrich at gmail.com> To: Wei-han Liu <weihanliu2002 at yahoo.com> Cc: "R-SIG-Finance at r-project.org" <R-SIG-Finance at r-project.org> Sent: Thursday, 15 December 2011 3:10 AM Subject: Re: [R-SIG-Finance] (no subject) On Wed, Dec 14, 2011 at 5:25 AM, Wei-han Liu <weihanliu2002 at yahoo.com> wrote: Hi there: I am practicing the new R package DEoptim and following the paper titled ?Large-scale portfolio optimization with DEoptim? as attached. No need to attach a paper that's provided in the package. I am wondering if there is error in this package or else because when I tried the commands listed in Section 6. Portfolio optimization with DEoptim but encountered some error message as listed below: Error in NextMethod(.Generic) : dims [product 121] do not match the length of object [40401] Also : Warning message: In `-.default`(0.5 * dmvnorm(x, c(-3, -3)) + 0.5 * dmvnorm(x, c(3, : longer object length is not a multiple of shorter object length Could somebody share some hint or help? You need to provide a lot more information for anyone to help. See the posting guide, especially the section on "Surprising behavior and bugs". http://www.r-project.org/posting-guide.html There are 4 blocks of commands in Section 6 of the paper. You need to tell us which commands create the error. Thank you for your kind consideration and response. Wei-han Liu Best, -- Joshua Ulrich | FOSS Trading: www.fosstrading.com