tcltk error #624
-
I have one more question. Error related to tcltk: Could this issue also be due to the r code rather than the yaml file?" This issue does not occur on Windows, but it does happen on Mac and Linux. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I forgot the details, but it is possible that you'll need to work around it on GHA. Can you link to the failing builds? |
Beta Was this translation helpful? Give feedback.
-
In general the problem is that your package does not work or even load without an X server. On macOS the R-hub actions do install an X server now, so that works. But on Linux that does not happen. We could try installing an X server on Linux, but if you think that your package should at least load without an X server, you should modify it to import BiodiversityR on demand, and not from the > library(rNFI)
Error: package or namespace load failed for ‘rNFI’:
.onLoad failed in loadNamespace() for 'Rcmdr', details:
call: structure(.External(.C_dotTclObjv, objv), class = "tclObj")
error: [tcl] invalid command name "tk_messageBox".
> library(BiodiversityR)
Error: package or namespace load failed for ‘BiodiversityR’:
.onLoad failed in loadNamespace() for 'Rcmdr', details:
call: structure(.External(.C_dotTclObjv, objv), class = "tclObj")
error: [tcl] invalid command name "tk_messageBox".
> library(Rcmdr)
Error: package or namespace load failed for ‘Rcmdr’:
.onLoad failed in loadNamespace() for 'Rcmdr', details:
call: structure(.External(.C_dotTclObjv, objv), class = "tclObj")
error: [tcl] invalid command name "tk_messageBox". |
Beta Was this translation helpful? Give feedback.
In general the problem is that your package does not work or even load without an X server. On macOS the R-hub actions do install an X server now, so that works. But on Linux that does not happen.
We could try installing an X server on Linux, but if you think that your package should at least load without an X server, you should modify it to import BiodiversityR on demand, and not from the
NAMESPACE
file: