jeroenjanssens / raylibr

R package that wraps Raylib, a simple and easy-to-use library to enjoy videogames programming
https://jeroenjanssens.github.io/raylibr/
Other
32 stars 5 forks source link

julia demo: Failed to open text file #2

Closed ramiromagno closed 1 year ago

ramiromagno commented 1 year ago

Great package! I am really excited to see where you are going with this :)

I just tried the julia demo and the code runs, launches the window but, besides the help text, the window is blank (black). I think it's because it is failing to read the files it needs. And that is because your functions do not seem to be honoring the working directory. For example it's trying to read demo/julia_set.fs directly from my home directory.

jeroenjanssens commented 1 year ago

Thank you for your kind words and for reporting this issue, @ramiromagno.

I can confirm that this is not working. I have been testing the demos by sourcing the code in the package source directory, I didn't realize that when a package is installed, only .R files get copied to the /demo directory. The solution is to move any demo resources to /inst/demo_resources and to update the demo R files.