Comments (3)
Dear Srikanth,
Thanks for your question:
Your script is almost correct: you should remove the line "read_chunkwise", and then it is working, since the write_chunkwise
function can operate on a tbl_ object. I will update the documentation, and add functionalty so your original code will work.
library("chunked")
library("RSQLite")
dbcon <- dbConnect(SQLite(), "test.sqlite")
dbWriteTable(dbcon, "mtcars", mtcars)
dbDisconnect(dbcon)
tbl<-
( src_sqlite("test.sqlite") %>%
tbl("mtcars")
) %>%
write_chunkwise('test2.csv', chunk_size=10)
Best regards,
Edwin
from chunked.
Dear Edwin,
Thanks for the quick update! The code that produced the error now works. Cognitively, it is intuitive to set chunksize at 'read' stage.
from chunked.
I agree :-)
from chunked.
Related Issues (18)
- Does this work with non conventional delimiters ? HOT 2
- chunked testthat 0.12.0 tests gives error HOT 1
- chunked and validate together
- txt file support?
- Support for fst format HOT 2
- Implementing sample_n and sample_frac HOT 2
- data missing - no `fill = TRUE` option
- Merging large files HOT 3
- Reading compressed files HOT 1
- Can't read csvs with NAs in numeric columns HOT 3
- dplyr 0.8.0 HOT 1
- Feature request: support for fixed width file?
- Unsupported type 'logical'; using default type 'string'
- Add reshape: gather (melt) and spread (dcast) HOT 1
- Can't read a file chunkwise
- Error in .local(x, ...) : Line ended while open quote
- Functions need examples and more verbose documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chunked.