Working on AI-900-Fundamentals and wanted to test R script, but my self-hosted Jupyter notebook did not have working R kernel, as seen in below image.

Steps taken to get R kernel working within Jupyter Notebook

'Get the os-release:
cat /etc/os-release 

NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling VERSION_ID=TEMPLATE_VERSION_ID ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://bugs.archlinux.org/" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo
'Install R on Arch-Linux
pacman -Sy r
'Get some common packages
pacman -Sy gcc-fortran openssl libxml2
After R has been install on Arch-Linux, open R and install needed R packages:
R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

'Install package for Jupyter:
install.packages('IRkernel')

'Make newly installed R available to Jupyter
IRkernel::installspec(user = FALSE)'

' Install a couple R packages needed for current Azure endpoint script.
install.packages('RCurl')
install.packages('rjson')

'Update R packages
update.packages(ask=FALSE)

Voila – R kernel is now available in Jupyter notebook

Testing Azure Endpoint

R script & AI regression model working!!!