Skip to content

Instantly share code, notes, and snippets.

@Hugoberry
Created March 9, 2017 23:54
Show Gist options
  • Save Hugoberry/f91d8feee0d4b9e18937df5c24173046 to your computer and use it in GitHub Desktop.
Save Hugoberry/f91d8feee0d4b9e18937df5c24173046 to your computer and use it in GitHub Desktop.
Writing 10M lines of a query result to a table in Power Query via R
let
seed = {1..10000000},
seedTable = Table.FromList(seed, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
RScript = R.Execute("write.csv(dataset,""d:\\Downloads\\out.csv"")",[dataset=seedTable]),
out = RScript
in
out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment