RBi on Rstudio

41 views
Skip to first unread message

Aden

unread,
May 20, 2020, 9:28:01 PM5/20/20
to LibBi Users
Hi,
I am a new user of RBi package.
I installed LibBi via cygwin and I ran one of the demos in Rstudio.
However, it could not find the "libbi" file although I passed the directory.
Do I need to run R in cygwin and then using RBi package or I can run it from Rstudio?

Thanks
Aden

idontgetoutmuch

unread,
May 21, 2020, 2:14:38 AM5/21/20
to LibBi Users
Hi Aden,

I don't run Windows and R isn't my principal language but if it were me I'd try just running R at the command line and see if it finds libbi. If that works then you know it's something to do with your RStudio set up; if not then you can post the error message here.

Dominic

Aden

unread,
May 21, 2020, 7:45:25 AM5/21/20
to LibBi Users
 Thank you for your response.
I ran the code in cmd and I got the same error as Rstudio. The error is:

Error in rethrow_call(c_processx_exec, command, c(command, args), stdin,  :
  Command '/libbi' not found @win/processx.c:983 (processx_exec)
Type .Last.error.trace to see where the error occured

The code  is:

library('rbi')
(path_to_libbi="C:/LibBi/LibBi-master/script/libbi")
demo(PZ_PMMH)

Aden

Aden

unread,
May 21, 2020, 8:46:49 AM5/21/20
to LibBi Users
Sorry, the code is

library('rbi')
options(path_to_libbi="C:/LibBi/LibBi-master/script/libbi")
demo(PZ_PMMH)

Aden

Dominic Steinitz

unread,
May 29, 2020, 3:35:47 AM5/29/20
to Aden, LibBi Users
Did you manage to solve your problem? If not and if it were me I would try running LibBi from the command line to check that it is actually installed where you think it is. I haven’t used LibBi in a long time and I don’t recall having to set the path explicitly in R. If I get time I can try today but N.B. I am on macOS not Windows. Another option would to be to use WSL.

Dominic Steinitz
Twitter: @idontgetoutmuch

--
You received this message because you are subscribed to the Google Groups "LibBi Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libbi-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/libbi-users/f3549d87-8b25-4dae-a7d4-e08ed60b5c2a%40googlegroups.com.

Aden

unread,
May 29, 2020, 8:01:03 AM5/29/20
to LibBi Users
I could not solve the problem. I tried running LibBi from command line and I got the same error.
Thanks

On Friday, May 29, 2020 at 3:35:47 AM UTC-4, idontgetoutmuch wrote:
Did you manage to solve your problem? If not and if it were me I would try running LibBi from the command line to check that it is actually installed where you think it is. I haven’t used LibBi in a long time and I don’t recall having to set the path explicitly in R. If I get time I can try today but N.B. I am on macOS not Windows. Another option would to be to use WSL.

Dominic Steinitz
Twitter: @idontgetoutmuch
On 21 May 2020, at 13:46, Aden <nedaja...@gmail.com> wrote:

Sorry, the code is

library('rbi')
options(path_to_libbi="C:/LibBi/LibBi-master/script/libbi")
demo(PZ_PMMH)

Aden


--
You received this message because you are subscribed to the Google Groups "LibBi Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libbi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages