Closed azzaea closed 3 years ago
Permissions are usually local system specific. You should look if you can execute plantuml from the command line as described here.
If this runs, the function which executes the system2()
call is plantuml_run ()
, so you could step through that function to get the command executed and that try that one from the terminal. This is in line https://github.com/rkrug/plantuml/blob/23db23cd9b99975eb9d2402a6e95c0efea7c0b9b/R/plantuml_run.R#L65
Let me know if this does not help, and I can take a closer look.
Thank you much for the hint and help.
I looked around a bit, and the problem is now solved on my system (but I'm not clear on why- I haven't modified the package internally or particularly installed plantuml
-related package). Nonetheless, here is what I did:
plantuml_update()
and download an updated jar.> plantuml_update()
trying URL 'https://sourceforge.net/projects/plantuml/files/latest/download'
Content type 'application/java-archive' length 8346090 bytes (8.0 MB)
==================================================
downloaded 8.0 MB
[1] "/home/azza/.cache/R/plantuml/jar/plantuml.jar"
$ ll -h /home/azza/.cache/R/plantuml/jar/plantuml.jar
-rw-rw-r-- 1 azza azza 8.0M May 25 04:00 /home/azza/.cache/R/plantuml/jar/plantuml.jar
$ java -jar /home/azza/.cache/R/pl
antuml/jar/plantuml.jar -help
Usage: java -jar plantuml.jar [options] -gui
(to execute the GUI)
or java -jar plantuml.jar [options] [file/dir] [file/dir] [file/dir]
(to process files or directories)
:
:
$ chmod +x /home/azza/.cache/R/plantuml/jar/plantuml.jar
> plot(
+ x = x
+ # vector = TRUE
+ )
[1] 0
As a sanity check, remove the jar, run the plantuml_update()
function again to re-download, check the permissions of the jar
Run the first example without changing permissions
Again, thank you much. Please feel free to close
Good to hear that it is working now.
Hello,
Thank you for providing this package. I just installed the package, but keep getting a
Permission denied
error as below upon running the first example in the README. Would you kindly advise?Thank you, Azza
Here are my session info: