-
Notifications
You must be signed in to change notification settings - Fork 38
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
Support for yaml arrays? #77
Comments
Ok, its equivalent. https://stackoverflow.com/questions/23657086/yaml-multi-line-arrays So it will work, its only readability to favour the former. |
It appears that what you're asking for is a way to tell the |
Despite their technical equivalence, I would like this feature a lot, too. I think the bracket style is intuitive for R users because it sort of looks like |
I would like this feature too! I didn't know this wasn't supported and ended up getting several of my yaml files messed up. |
Hi would love this feature too, for a big YAML it becomes much much more human readable in array format |
Some clarification regarding terminology:
When emitting, libyaml allows to set the PyYAML has an option |
Current branch passes val-grind tests. |
Passes tests in data.table as well.
|
I was curious and looked into 276825d and only see |
Maybe two parameters, |
I don't think that is necessary. |
I thought that's what this patch does, I don't see it in the changeset getting passed to |
And I suggested that it should, but with a different name, not "sequence" in it. If you want to do something completely different than pyyaml, go ahead :) |
It doesn't make sense to emit all sequences in flow and all mappings in block style. everything under flow style nodes must be flow style itself. |
:lol: I never try to make sense of user style requests... |
This shows what you're talking about https://gist.github.com/perlpunk/377c3a537df861a7736fd3a1b9aec04f The proposal is for the parameter
@MarkEdmondson1234 Can you foresee any reason one would want this controlled separately, i.e. handle lists/maps one way and arrays a different way? |
Hello, I'm trying to make an R implementation that would output this yaml:
But I can't find some R object that supports the
['blah','blah']
bit. It keeps putting it as individual entries. It doesn't seem to be reversible in import and output eithere.g.
...gives:
Is the desired output possible?
The text was updated successfully, but these errors were encountered: