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

Code showing up randomly in Output Data Table #121

Open
jaxona opened this issue Sep 16, 2019 · 0 comments
Open

Code showing up randomly in Output Data Table #121

jaxona opened this issue Sep 16, 2019 · 0 comments

Comments

@jaxona
Copy link

jaxona commented Sep 16, 2019

I'm trying to produce a table showing CAPEX on a per-site basis. However, there is an error that keeps appearing when I include a particular site. Code appears in between two numbers.

image

Here is the code chunk:
formattable(TopNSitesTable, align = "c",
list(Rank Diff = formatter("span", ~ icontext(sapply(Rank Diff, function(x) if (x < 0) "arrow-down" else if (x > 0) "arrow-up" else "-"), Rank Diff)),
Business_Type = formatter("span",TopNSitesTable$Business_Type),
R13PGBV = formatter("span",currency(TopNSitesTable$R13PGBV, digits=0)),
CPGBV = formatter("span",currency(TopNSitesTable$CPGBV, digits=0)),
Difference = formatter("span",currency(TopNSitesTable$Difference, digits=0))))

Any thoughts on this?

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

1 participant