dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
523 stars 78 forks source link

Problem in pasting tables #146

Closed NepalR closed 2 years ago

NepalR commented 3 years ago

Hello !! I have been using summarytools pkg for tabulation of my data. Recently I upgraded my r and r studio into [R version 4.1.0 (2021-05-18) -- "Camp Pontanezen"] In earlier version of rstudio i could easily copy the tablulation generated from using ctable() and freq() function neat and clean like what it shows in console. Now I am getting some scattered values (not neat and clean) while pasting tables in word document generated from using above function .

Is this something wrong with my r studio setup or is there something need to be fixed in package itself.

Thank you so much for developing this package.

Cheers

dcomtois commented 3 years ago

Hi, sorry for not responding earlier, I am super busy with work... Could you pls include some reproducible example as well as some screen captures of what you're describing? Having a before / after would be ideal, i.e. how it looked before the update versus how it looks now... I never copy/paste into Word so this would help me figure it out much faster. Thanks.

NepalR commented 3 years ago

Hi, sorry for not responding earlier, I am super busy with work... Could you pls include some reproducible example as well as some screen captures of what you're describing? Having a before / after would be ideal, i.e. how it looked before the update versus how it looks now... I never copy/paste into Word so this would help me figure it out much faster. Thanks.

Hello, Apologies for late response. Here are some reproducible examples followed by screen captures

codes

library(summarytools) attach(starwars) ctable(starwars$skin_color, starwars$sex)

Attached files capture worderror s wordnoerror (what it look on r console at present as well as in earlier version!!) worderror (what it look while i paste output into word from r console) wordnoerror(what it used to look like when i past output from r console to word document)

I am just a beginners of R. So there might be some technical lacking in running the code from my side.

Regards Ram

Capture2

NepalR commented 3 years ago

Capture2 this is what it looks on r console at present and in earlier version of R

worderror this is what i get while i paste result from r console to word document

wordnoerror this is the one with no such issue which i used to get in word doucment while pasting from r console directly

Best Regards

dcomtois commented 3 years ago

Oh, would it just be that you must use a monospace font in Word, like Lucida Console or Courrier New? Or am I missing something?

dcomtois commented 2 years ago

Will reopen if follow-up is provided...