Comments (8)
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.
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.
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.
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.
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.
from lost-stats.github.io.
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.
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)
- Broken links for data importing pages? HOT 1
- Code samples which don't pass tests HOT 9
- Encourage use of same datasets across implementations HOT 7
- An Example of Web Scraping in R HOT 2
- New name for the Generalized Least Squares category HOT 2
- Better syntax highlighting HOT 2
- Event study in Stata HOT 9
- Add to KNN page - R walkthrough HOT 2
- Causal Forest Walkthrough is wrong for the stata - R interface example HOT 1
- how to save the stargazer output table into a file/png using Python HOT 1
- Added as a contributer HOT 1
- Add vector autoregression and impulse response functions to granger causality section HOT 1
- Pushed color palette image files to wrong folder HOT 4
- Post contribution warning and possible mistake changing new page template HOT 2
- Fix marginal effects plot (with categorical interactions) page HOT 5
- Create page on package creation HOT 1
- Build failure HOT 8
- DiD Event Study Code in Python Interactions in the Wrong Order HOT 4
- Event study in Stata HOT 1
- Event study in stata with reghdfe
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 lost-stats.github.io.