[BlindRUG] RMarkdown and R on windows 10

Jooyoung jooyoung at psu.edu
Tue Mar 6 03:05:02 UTC 2018


You are welcome Faiz,

Below are my answers again:

1. Learning Python

You do not necessarily have to learn Python to compose R Markdown.
All required work can be done in R session.
The reason why I mentioned Python is that Dr. Godfrey's accessible Rmd editor WriteR function requires python version 2.7 and wxPython package installation.
That's it.

2. apa_table

apa_table() is one of the convenient functions under "papaja" package.

It takes statistical data.frame and make reportable table according to apa6 format.

First, install papaja package if you have not by typing the following command in your R session:

if(!require(devtools)) {
chooseCRANmirror(ind=1)
install.packages('devtools', depen=T)
}

devtools::install_github("crsh/papaja")

Second, type the following command in your console to find out detailed usage for the function:
?apa_table

Hope this helps.

JooYoung

-----Original Message-----
From: faiz rasool <faiz7r at gmail.com> 
Sent: Sunday, March 4, 2018 4:19 AM
To: Jooyoung <jooyoung at psu.edu>
Subject: Re: [BlindRUG] RMarkdown and R on windows 10

Jooyoung,

Thank you so much for your detailed answers to all of my questions.

It is rare  to receive such  comprehensive replies to your questions on email lists, and I cannot thank you enough for taking the time out to help me.

Unfortunately, I have no experience with of using python, but, I'm open to, and will like to learn python.

I have installed the rmarkdown package, and pandoc. What I have concluded (correct me if I'm wrong), that I will not be able to learn all of this within few hours, so,  I think what my approach will be that I will tryout these things step by step, and as I come  across a problem, i'll ask you or the list for help.

I just googled R packages for reporting apa results, and I found a package called apaTables. I have nnot installed it yet, do you have
any experience    of using this package?

I'm a doctoral student in Sociology, at University of Karachi, Karachi, Pakistan. Here, support for blind students in the university is very low,  and you are working out things on your own most of the time. So, I may be asking  many questions on the list or to you in the  coming days.

Regards,
Faiz.

On 3/3/18, Jooyoung <jooyoung at psu.edu> wrote:
> I am sending this to  correct the conda commands to install and update 
> pandoc as it was jumbled up in the previous message. Use the following 
> two lines to get and update Pandoc if you use Anaconda:
>
>> conda install -c conda-forge pandoc -y conda update -c conda-forge 
>> pandoc -y
>
> Hope this helps.
> Sincerely,
>
> JooYoung
>
> -----Original Message-----
> From: BlindRUG [mailto:blindrug-bounces at nfbnet.org] On Behalf Of 
> Jooyoung via BlindRUG
> Sent: Friday, March 2, 2018 3:33 PM
> To: 'Blind R Users Group' <blindrug at nfbnet.org>
> Cc: Jooyoung <jooyoung at psu.edu>
> Subject: Re: [BlindRUG] RMarkdown and R on windows 10
>
> Hello Faiz,
>
> Below are my answers to your questions.
>
> 1. Does JAWS read R terminal on Windows 10 64bit system?
>
> Yes, if you use plain R console (AKA R terminal) instead of either R 
> GUI or R Studio, you can read through the R terminal window as it is 
> just running on CMD window.
>
> FYI, due to some technical changes in recent Windows 10 creator 
> update, only JAWS 2018 or NVDA reads synchronously the R terminal 
> results.
> If you use JAWS version prior to 2018, you can still use JAWS cursor 
> to manually review the output.
>
> 2. Regarding some basic understanding of Rmd
>
> I would like to recommend you read the following resource about R 
> Markdown written by one professor at CMU to deepen your understanding 
> of Rmd in
> general:
> http://www.stat.cmu.edu/~cshalizi/rmarkdown/
>
> 3. Required packages for Rmd workflow
>
> Usually, some basic packages for Rmd work involve the following:
>
> knitr, rmarkdown, LaTeX, pandoc
>
> A. You can install both knitr and rmarkdown using the following command:
>> chooseCRANmirror(ind=1)
>> install.packages(c('knitr', 'rmarkdown'), depen=T)
>
> B. Then download and install LaTeX packages for Windows by visiting 
> the following link: https://miktex.org/2.9/setup
>
> C. Pandoc installation: there are two ways to get pandoc for your system.
>
> First option,  if you use Anaconda Python, use the following commands 
> to easily get pandoc and update in your CMD window:
>
>> conda install -c conda-forge pandoc -y conda update -c conda-forge 
>> pandoc -y
>
> Second option, if you do not use Anaconda, then manually download and 
> install the latest Pandoc on your system by visiting the following link:
> https://github.com/jgm/pandoc/releases/tag/2.1.1
>
> 4. Rmd editor
>
> You can compose Rmd by using any text editor like Notepad, Wordpad, MS 
> word, etc. But you need to save the file as *.Rmd.
>
> There exist some editors specialized for Rmd; however, most of them 
> are not accessible. Dr. Godfrey, a host of this mailing list, has 
> developed an accessible Rmd editor using wxPython, and you can try 
> that if you have Python 2.7 and wxPython package installed on your system.
>
> In order to use the editor, first install BrailleR package and look up 
> the function called "WriteR." The online version of the function 
> description can be found at 
> https://www.rdocumentation.org/packages/BrailleR/versions/0.26.0/topic
> s/Writ
> eR
>
> Personally I've been using both notepad and emacs back and forth when 
> drafting Rmd files.
>
> 5. Final notes concerning table creation for multiple regression
>
> I know making table with special characters for statistical results is 
> quite challenging for a blind person, but you can achieve that using 
> Rmd.
>
> Since I am pursuing my Ph.D. in the field that requires APA6 format, I 
> have been extensively using the following R package which makes me 
> free from any cumbersome work in creating statistical table for report:
> https://github.com/crsh/papaja
>
> Other journal article templates in Rmd format can be achieved using
> "rticle": https://github.com/rstudio/rticles
>
> Hope this helps.
>
> Best wishes,
>
> JooYoung
>
> -----Original Message-----
> From: BlindRUG [mailto:blindrug-bounces at nfbnet.org] On Behalf Of faiz 
> rasool via BlindRUG
> Sent: Friday, March 2, 2018 7:43 AM
> To: blindrug at nfbnet.org
> Cc: faiz rasool <faiz7r at gmail.com>
> Subject: [BlindRUG] RMarkdown and R on windows 10
>
> Dear list,
>
> I  have two quick questions.
>
> I have  recently learned about RMarkdown, but I have the following 
> confusions.
>
> Firstly, I do not know which Rmarkdown edditor to download, when I 
> type RMarkdown on google, I notice many different options, but, I do 
> not know which is the best option with Jaws.
>
> My goal is to have the results of around 8 formatted multiple 
> regression tables. So I'd like to know the quickist way to achieve
> what I want.   If Markdown and knitr package  can be quickly learned,
> then, i'd appreciate if list members share their experiences with 
> markdown and knitr.
>
> I also read about stargazer, but, I do not have any prior experience 
> of exporting formatted  results from R,  so, I'd like to learn from 
> list members that which package I should instal  and try to learn.
>
> Finally, does Jaws  read the contents of R terminal on 64 bit windows?
>
> Regards,
> Faiz.
>
> _______________________________________________
> BlindRUG mailing list
> BlindRUG at nfbnet.org
> http://nfbnet.org/mailman/listinfo/blindrug_nfbnet.org
> To unsubscribe, change your list options or get your account info for
> BlindRUG:
> http://nfbnet.org/mailman/options/blindrug_nfbnet.org/jooyoung%40psu.e
> du
> The list archive can be viewed at:
> http://www.nfbnet.org/pipermail/blindrug_nfbnet.org
> More information and useful links about using R as a blind person can 
> be obtained at:
> http://R-Resources.massey.ac.nz
>
> Look for help using R commands by reading the accessible e-book "Let's 
> Use R Now" compiled by Jonathan Godfrey at:
> http://R-Resources.massey.ac.nz/lurn/front.html
>
>
> _______________________________________________
> BlindRUG mailing list
> BlindRUG at nfbnet.org
> http://nfbnet.org/mailman/listinfo/blindrug_nfbnet.org
> To unsubscribe, change your list options or get your account info for
> BlindRUG:
> http://nfbnet.org/mailman/options/blindrug_nfbnet.org/sjysky%40gmail.c
> om
> The list archive can be viewed at:
> http://www.nfbnet.org/pipermail/blindrug_nfbnet.org
> More information and useful links about using R as a blind person can 
> be obtained at:
> http://R-Resources.massey.ac.nz
>
> Look for help using R commands by reading the accessible e-book "Let's 
> Use R Now" compiled by Jonathan Godfrey at:
> http://R-Resources.massey.ac.nz/lurn/front.html
>
>




More information about the BlindRUG mailing list