CrumpLab / statisticsLab

Lab manual for Psyc 3400 @ Brooklyn College
Creative Commons Attribution Share Alike 4.0 International
16 stars 23 forks source link

Example issue #3

Open CrumpLab opened 6 years ago

CrumpLab commented 6 years ago

We can use this issue feature to talk about things we need to do. We can close issues that we have resolved. It's an awesome to-do list.

anjkrishnan commented 6 years ago

Hi Everyone, just to say that I can access and post comments!

CrumpLab commented 6 years ago

Great, thanks Anjali!

anjkrishnan commented 6 years ago

Hi Matt, I was able to compile the R markdown file successfully, so I can send you my labs in that format. Thank you so much for taking the time to make a step-by-step instruction folder!

CrumpLab commented 6 years ago

Great!

anjkrishnan commented 6 years ago

Hi @CrumpLab, quick question: how do I get inline latex symbols to work with Rmarkdown? I looked online and people said to use for example: $\text{f_x}$, but that ends up moving the following text to the next line. I'll keep looking, but I thought I would use the github issues option just because I could :)!

CrumpLab commented 6 years ago

Tha's weird, shouldn't do that for example:

I'm writing something $d$ and then I keep going $\sum{}$ and then more.

When I compile the above it all goes on one line

Same, when I try your text

screen shot 2018-07-26 at 7 57 04 am
anjkrishnan commented 6 years ago

Hi @CrumpLab, Looks like it happens when the text with the latex is right under a figure. Is there a proper way to end a figure environment? The same text in the middle of a paragraph seems to be alright.

anjkrishnan commented 6 years ago

@CrumpLab , nevermind! It looks fine when I open it on a browser. Just didn't work when the html was generated. Also, I'm beginning to love jamovi -- guess what the new version released yesterday has: Screenshot tool: for those creating teaching materials, the new screenshot tool streamlines the screenshot process.

CrumpLab commented 6 years ago

K, cool. Your probably discovering these tidbits already, but here's two more

The width of the browser in the r-studio viewer can play tricks on you (but when the width is small, you will see what people see on their phones)

R Markdown can be particular sometimes about when it wants a new line in the .RMD file to make certain markdown syntax run. So, sometimes add a return between things, or take one away.

Glad it's working in the browser

anjkrishnan commented 6 years ago

Hi @CrumpLab , I am trying out that QuickTime screen recording, and I think I will use it for some parts of the data re-organization. What is the code to include that in the text? I am looking for it myself, just thought I would ask in case you have it handy. Thanks!

CrumpLab commented 6 years ago

Not sure yet...Haven't actually done this. The way to do it, will be to have your screen recording uploaded to youtube. then we will put the youtube link into the document. The movies will be really big, and we can't serve them from github. If you want to try seeing what it would like, just put any youtube link into the markdown...

It should work by putting an iframe straight into the markdown where you want it (e.g., you can always insert html into markdown, and it will compile as html). An example is here:

https://stackoverflow.com/questions/38517236/youtube-video-in-r-markdown