Skip to content
This repository has been archived by the owner on Aug 10, 2020. It is now read-only.

% used for comments #25

Closed
vnijs opened this issue Dec 6, 2014 · 5 comments
Closed

% used for comments #25

vnijs opened this issue Dec 6, 2014 · 5 comments

Comments

@vnijs
Copy link

vnijs commented Dec 6, 2014

% treated as a comment symbol in Rmd files (i.e., text after the % is grayed out) but will not be when evaluated by knitr

@randy3k
Copy link
Owner

randy3k commented Dec 6, 2014

it is because the latex syntax has been imported to Rmarkdown, we may need to tailor make the latex syntax for Rmarkdown.

@randy3k
Copy link
Owner

randy3k commented Dec 6, 2014

My best suggestion for the moment is to use \% if you want to show the percentage sign.

@vnijs
Copy link
Author

vnijs commented Dec 6, 2014

It actually shows the % sign just fine already. In fact % would print % when passed to knitr. It just seems that % is used by R-box as comment indicator anywhere in an Rmd file, not just within a formula (e.g., $…$ or $$…$$). Presumably this is defined in the syntax file for Rmd.

From: Randy Lai <notifications@github.commailto:notifications@github.com>
Reply-To: randy3k/R-Box <reply@reply.github.commailto:reply@reply.github.com>
Date: Saturday, December 6, 2014 at 12:05 AM
To: randy3k/R-Box <R-Box@noreply.github.commailto:R-Box@noreply.github.com>
Cc: Vincent Nijs <vnijs@ucsd.edumailto:vnijs@ucsd.edu>
Subject: Re: [R-Box] % used for comments (#25)

My best suggestion for the moment is to use % if you want to show the percentage sign.


Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-65889471.

@randy3k
Copy link
Owner

randy3k commented Dec 6, 2014

The comment is anywhere since the latex syntax is imported anyway....

@randy3k
Copy link
Owner

randy3k commented Feb 11, 2016

This is solved in the latest RMarkdown syntax.

@randy3k randy3k closed this as completed Feb 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants