Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📚 [Documentation] - Using R #136

Open
4 tasks
edwardchalstrey1 opened this issue Oct 30, 2024 · 1 comment
Open
4 tasks

📚 [Documentation] - Using R #136

edwardchalstrey1 opened this issue Oct 30, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@edwardchalstrey1
Copy link

edwardchalstrey1 commented Oct 30, 2024

Section of Documentation

Software tools

Description of Improvement

  • Add a guide for installing R, similar to the existing Python instructions
  • Include Jupyter notebook with R instructions
  • If there are any truly reproducible R notebooks, include setup instructions there - see these notes

Benefits of Improvement

Easier to use R and re-run analyses in R

Additional Context

No response

Definition of Done

  • The documentation improvement has been developed on a branch.
  • A pull request has been created for the new branch to be merged into the dev branch.
@edwardchalstrey1 edwardchalstrey1 added the documentation Improvements or additions to documentation label Oct 30, 2024
@edwardchalstrey1 edwardchalstrey1 self-assigned this Oct 30, 2024
@edwardchalstrey1
Copy link
Author

R

  1. Install Jupyter (and obvs would need Python and pip)

        python -m pip install jupyter
    
  2. Install R

        brew install --cask r
    
  3. Open R in terminal and install the IRkernel:

        install.packages('IRkernel')
    
  4. We need to make Jupyter see the newly installed R kernel by installing a kernelspec. To install system-wide, set user to False in the installspec command in your Rconsole:

        install.packages('IRkernel')
    
  5. Open the notebook:

        jupyter notebook
    
  6. Running the first cell installs all the packages into the base R as there's no venv created and the packages don't have specificed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant