Git Product home page Git Product logo

Comments (5)

yavyx avatar yavyx commented on June 15, 2024 2

It's working now, thank you!

from bigstatsr.

privefl avatar privefl commented on June 15, 2024 1

Thanks for pointing to this.

I have now

  • added the documentation of big_attach() to the website
  • added an example of big_attach() in the documentation of FBM
  • mentioned that you should read only once from text files (and use big_attach() instead) in the corresponding vignette

Hope this will make things clearer.

from bigstatsr.

privefl avatar privefl commented on June 15, 2024

What you need to do is to use $save() the first time, this will create a corresponding .rds file, on which you can use big_attach() to get the FBM object in another session.

from bigstatsr.

privefl avatar privefl commented on June 15, 2024

That's great

Also, it would be useful to know where you have looked for this information, in case I may be able to improve the documentation a bit.

from bigstatsr.

yavyx avatar yavyx commented on June 15, 2024

I see that the $save() method is in the FBM documentation, but me and the previous developer both found it difficult to understand what its purpose was until your clarification. It was a little confusing that it generates an .rds file that points to the .bk file until it finally worked. The example in the documentation for big_attach() was extremely useful:

X <- FBM(10, 10)$save()

rdsfile <- sub_bk(X$backingfile, ".rds")
X2 <- big_attach(rdsfile)

all.equal(X[], X2[])

However, big_attach() isn't included in the pkgdown website, so I wouldn't have found it without your help. Just including this function and example on the website would help a lot, and a small vignette detailing the write/read process and the relationship between the .rds and .bk files would be even better.

from bigstatsr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.