You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/datatable-fread-and-fwrite.Rmd
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ The `-v` option makes `grep` return all lines except those containing the string
57
57
58
58
Look at this [example](https://stackoverflow.com/questions/36256706/fread-together-with-grepl/36270543#36270543) for more detail.
59
59
60
-
On Windows we recommend [Cygwin](https://www.cygwin.com/) (run one .exe to install) which includes the command line tools such as grep. In March 2016, Microsoft [announced](https://www.hanselman.com/blog/developers-can-run-bash-shell-and-usermode-ubuntu-linux-binaries-on-windows-10) they will include these tools in Windows 10 natively. On Linux and macOS, these tools have always been included in the operating system. You can find many examples and tutorials about command line tools online. We recommend [Data Science at the Command Line](https://www.oreilly.com/library/view/data-science-at/9781491947845/).
60
+
On Windows we recommend [Cygwin](https://www.cygwin.com/) (run one .exe to install) which includes the command line tools such as grep. In March 2016, Microsoft [announced](https://www.hanselman.com/blog/developers-can-run-bash-shell-and-usermode-ubuntu-linux-binaries-on-windows-10) they will include these tools in Windows 10 natively. On Linux and macOS, these tools have always been included in the operating system. You can find many examples and tutorials about command line tools online.
61
61
62
62
#### 1.1.1 **Reading directly from a text string**
63
63
@@ -148,10 +148,11 @@ Because the large sample explicitly includes the very end of the file, critical
148
148
149
149
`fread()` doesn't directly support SQL `INSERT` scripts, but they can be processed via command-line tools. For example, given `insert_script.sql`:
150
150
151
-
```{SQL}
152
-
INSERT INTO tbl VALUES (1, 'asd', 923123123, 'zx');
153
-
INSERT INTO tbl VALUES (1, NULL, 923123123, 'zxz');
154
-
INSERT INTO tbl VALUES (3, 'asd3', 923123123, NULL);
151
+
```{r, eval=FALSE}
152
+
# Example SQL insert statements:
153
+
# INSERT INTO tbl VALUES (1, 'asd', 923123123, 'zx');
154
+
# INSERT INTO tbl VALUES (1, NULL, 923123123, 'zxz');
155
+
# INSERT INTO tbl VALUES (3, 'asd3', 923123123, NULL);
155
156
```
156
157
157
158
Use this command in R [link](https://stackoverflow.com/questions/32026398/transform-sql-insert-script-into-csv-format):
0 commit comments