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

dmdclip() does not paste as markdown #98

Open
dholstius opened this issue Sep 12, 2019 · 1 comment
Open

dmdclip() does not paste as markdown #98

dholstius opened this issue Sep 12, 2019 · 1 comment

Comments

@dholstius
Copy link

The example given in the intro:

iris %>%
     head() %>%
     dmdclip()

results in this:

data.frame(
  Sepal.Length = c(5.1, 4.9, 4.7, 4.6, 5, 5.4),
   Sepal.Width = c(3.5, 3, 3.2, 3.1, 3.6, 3.9),
  Petal.Length = c(1.4, 1.4, 1.3, 1.5, 1.4, 1.7),
   Petal.Width = c(0.2, 0.2, 0.2, 0.2, 0.2, 0.4),
           Species = as.factor(c("setosa",
                                 "setosa","setosa","setosa","setosa","setosa"))
    )

... rather than markdown-formatted output.

@MilesMcBain
Copy link
Owner

It's not meant to be a markdown table, it's meant to have extra indentation so that it is parsed as block, which I think has worked correctly here. This is handy if you paste a lot of these into stack overflow.

I fully appreciate that the description of the function could be misleading, sorry.

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

2 participants