Skip to content
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

multiline model names #174

Open
eborbath opened this issue Mar 18, 2021 · 3 comments
Open

multiline model names #174

eborbath opened this issue Mar 18, 2021 · 3 comments

Comments

@eborbath
Copy link

Hi!

I was wondering is there a way to have multiline model names, in the way suggested here: https://stackoverflow.com/questions/55782458/how-to-get-multiline-model-names-in-screenreg-and-texreg

I found a workaround by specifying row 2 in custom.model.names and row 1 in custom.header that does what I want, I would just like to remove the cline or the cmidrule from between them. Is there a way to do that?

@leifeld
Copy link
Owner

leifeld commented Mar 18, 2021

Not at the moment. I wonder what would be better, being able to remove the rules or having a second argument for a second model name row in the table. I'm not sure how to insert multi-line headers into tables, so I'd have to read up on that to see if there is a clean solution that doesn't interfere with any other arguments like longtable, sidewaystable etc and that can be implemented in similar ways for htmlreg, screenreg etc. If you'd like to come up with suggestions via a pull request, feel free to give it a try. Otherwise I may get to it at some point, but I'm still swamped with teaching and other duties right now and will have to catch up on my R&Rs first after the semester is over.

@eborbath
Copy link
Author

Thanks! For now, I found a messy solution, by reading in the *.tex file after it's created, and deleting the respective row where cline or cmidrule is specified, using a combination of readLines and writeLines as specified here: https://stackoverflow.com/questions/31824721/delete-lines-of-a-text-file-in-r

I leave it here because it works, but it's admittedly not at all elegant.

@shoonlee
Copy link

Thanks for a great package! (At least seemingly) similar request to the original one is to allow multiline gof (through custom.gof.rows argument) names. I tried it using \n but gets a similar result to the stack flow post in the original request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants