Code Monkey home page Code Monkey logo

Comments (8)

NickCH-K avatar NickCH-K commented on July 28, 2024

I'm not sure if this would work for languages, like R, that might well need a new package install on almost every page. But if there were a page for maintainers to add all installed packages used in their pages, that would address this, yes?

from lost-stats.github.io.

khwilson avatar khwilson commented on July 28, 2024

That's what I was thinking. Something like, "assume in every R example we have library(tidyverse) at the top, but specify more specific libraries in each example.

from lost-stats.github.io.

NickCH-K avatar NickCH-K commented on July 28, 2024

Hmm, that would mean that users couldn't copy the code chunks and have them just work though.

Would it achieve a similar goal to have the package installation lines in the code itself (or have them all assembled on another page for all used packages?)

from lost-stats.github.io.

khwilson avatar khwilson commented on July 28, 2024

Fair point! I'm also thinking of it though as a teaching tool for setting up your environment. At least in the python world, everyone has their standard preamble they copy and paste between notebooks. And in the R world, where namespace clobbering can occur, I assume people have very standardized import orders?

Happy to set this aside. :-)

from lost-stats.github.io.

NickCH-K avatar NickCH-K commented on July 28, 2024

I think it varies a lot between languages. Something like Stata has no environment setup, generally, and for R the setup varies a lot between users and tasks - lots of people don't use tidyverse at all, for example.

from lost-stats.github.io.

khwilson avatar khwilson commented on July 28, 2024

from lost-stats.github.io.

NickCH-K avatar NickCH-K commented on July 28, 2024

What we're assuming of readers is a tricky question since different pages naturally will have audiences with different levels of sophistication, and there are always multiple ways to do things.

The way I tried to aim it on the Contributing page is that a given page should aim for the level of sophistication you'd expect of someone needing to read that page. And as for multiple ways to do things, it should be a little opinionated in presenting a good way and sticking to it, but if the multiple ways are meaningfully different, being willing to show multiple ways.

from lost-stats.github.io.

khwilson avatar khwilson commented on July 28, 2024

While we don't have standard environments per se, #64 required creating more or less standard environments. See there for details.

from lost-stats.github.io.

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.