pbs-assess / csasdown

:book: An R package for creating CSAS reports in PDF or Word format with R Markdown and bookdown
Other
47 stars 17 forks source link

rosettafish needed as dependent package? #221

Closed MichaelFolkes closed 6 months ago

MichaelFolkes commented 2 years ago

rosettafish is required in the techreport rmd. Should it be a dependent? If commented out calls to en2fr() fail.

seananderson commented 2 years ago

It should be in the template examples but not used within the package functions, so it should be in Imports, which it is. It also needs to then be loaded within the templates (library(rosettafish)), which I believe it is. Does that sound right?

MichaelFolkes commented 2 years ago

yep, sounds right. I see it as a Suggest. my order of operation as suggested in the readme:

In index.rmd rosettafish is loaded before csasdown, is that the problem? Can't recall the nuances of suggested packages.

seananderson commented 2 years ago

Hmm, right. The default on the dependencies argument with remotes::install_github() is NA, which is "Depends", "Imports" and "LinkingTo". We could suggest modifying that to TRUE, which adds 'suggests'. I guess the point is you don't need rosettafish to use csasdown, but I agree, not a great experience when the default draft doesn't compile.

MichaelFolkes commented 2 years ago

I'll leave it to your decision if this is closed or not!

cgrandin commented 6 months ago

I'm closing this because the error message clearly states what is missing and there's been no other activity here for 1.5 years, and no other complaints.