R-Notebook-VScode
Sử dụng R trong Jupyter VSCode cho trải nghiệm tốt hơn so với sử dụng RStudio cho những người đã quen dùng JupyterLab, đặc biệt là Python. Nó cho phép vừa soạn code vừa lưu lại được các đồ thị, phù hợp vừa làm vừa viết báo cáo.
1 Introduction¶
2 Cách cài đặt¶
Trong môi trường R, nhập các lệnh như sau
install.packages('IRkernel')
IRkernel::installspec() # to register the kernel in the current R installation
jupyter labextension install @techrah/text-shortcuts # for RStudio’s shortcuts
Sau đó kiểm tra folder kernels
đã có ir
hay không.
Sau đó copy ir
folder vào folder kernel
của Anaconda
hay C:\ProgramData\jupyter\
. Sau đó và VScode để install R extension
là có thể dùng jupyter với kernel R.
Trong trường hợp jupyter không nhận kernel
thì có thể xoá jupyter extension
và cài lại, hoặc chuyển qua kênh pre-release
để fix các lỗi.
Created : Oct 25, 2022
Recent Posts
- 2024-10-03: Interactive Graph-Mkdocs
- 2023-11-07: Sankey-chart-budget-contribution
- 2023-10-27: My-First-Training-Academic
- 2023-10-06: Export-shapefile-with-Style
- 2023-10-01: Anki-Assimil
- 2023-10-01: CV-Markdown
- 2023-09-19: Change Point Detection Methods
- 2023-09-14: Chat-GPT-Obsidian
- 2023-09-13: Google-Photo-Obsidian
- 2023-09-12: Superchinese-App