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

vignettes not works as expected #35

Open
jhk0530 opened this issue Aug 23, 2022 · 1 comment
Open

vignettes not works as expected #35

jhk0530 opened this issue Aug 23, 2022 · 1 comment

Comments

@jhk0530
Copy link

jhk0530 commented Aug 23, 2022

Hi, thanks for building a very inspiring package.

What happened?

I tried this code as readme suggests

remotes:install_github('brad-cannell/codebookr')
library(codebookr) # install
data(study) # load 
study_codebook <- codebook(study) # build code book
print(study_codebook, "test.docx") # print as docx file

and "not finished" result created like below figure and file.

스크린샷 2022-08-23 오후 10 42 24

test.docx


Here's what I tried.

I tried to "debug" codes of package, and I checked temp file created successfully

스크린샷 2022-08-23 오후 10 59 40

and also rdocx object has them ( I checked element count has changed 6 -> 10 )

스크린샷 2022-08-23 오후 10 59 26

but after that, print(rdocx, 'test.docx') worked not properly

So maybe print function has some problem. (which I can't found)

Any suggestion will be helpful.

Thanks.

Kim

@mbcann01
Copy link
Member

Hello Kim,

Thank you for using codebookr and thank you for reaching out. I downloaded the test.docx document that you linked above. In the screenshot you attached above, it looks like you are viewing the file with the MacOS "Quick Look" feature. When I view the file with Quick Look, I get the same result.

Screen Shot 2022-08-23 at 8 35 06 PM

However, I get the desired result when I open the document in Microsoft Word.

Screen Shot 2022-08-23 at 8 36 39 PM

Have you tried opening test.docx in Microsoft Word?

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

2 participants