-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Options for print.latexMatrix
too hard to use
#69
Comments
From
So either use the For example:
All of the The approach taken is simpler than in knitr; if you look at the code for
|
Thanks for clarifying this John. I'll revise the documentation to make this explicit. I know that the defaults are all set in the code, so trying to interrogate them gives NULL:
I wonder if it would be better/more transparent to assign them in the package? Part of the difficulty was that I was trying to use this within I'm also thinking that the default should be |
Also, looking at I think this could be done with a separate @Rdname tag. What do you think? |
With respect to your penultimate comment: An alternative to the current approach is to set the default I don't like that approach for a couple of reasons: (1) Changing an option is much more complicated; you have to change the corresponding list element and then re-assign the whole list to the option via That said, if you really want to do this, please feel free to go ahead. I'd prefer not to change the default to With respect to your last comment: Yes, please feel free to create a separate help page for the |
OK, I can see the difficulty of setting options at startup, something I haven't seen elsewhere in package code. Re: the default for I finished working on the documentation for |
I may have conveyed the wrong impression: It's not hard to set options at startup, just not, I think, a good idea here. To do it, you'd define a
|
In my book, I'm generating matrices for SST, SSH and SSE for an MLM using
crossprod()
from Y, fitted and residuals,but I don't want the row/col names automatically generated by
crossprod()
. I had to do the following:The default for
display.labels
used byprint.latexMatrix()
is nowTRUE
by default, and I can't figure out how to change it, because I don't understand the syntax for assigning to an option which is a list of such nested labels.I understand that this developed as a result of adding more features.
But, at the least we should document (in @details for
print.latexMatrix()
) how to change the default.Or, maybe something like how
knitr::opts$set()
works?The text was updated successfully, but these errors were encountered: