Using R / R Markdown within Jupyter Lab

Hello!

I have seen variations of this topic posted around but, unfortunately, nothing that assists with my direct issue.

My current setup can be viewed here: GitHub - jtorourke/NixOS-Configuration: NixOS configuration files

I currently have jupyter.nix as a nix-shell file that brings in Python3 and Julia with no issues. However, I am receiving the following error when attempting to get the IRkernel to operate:

> IRkernel::installspec(user = FALSE)
Error in file(file, ifelse(append, "a", "w")) : 
  cannot open the connection
Calls: <Anonymous> -> write -> cat -> file
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
  cannot open file '/tmp/Rtmpja4gDt/fileaf337eb517bd/kernelspec/kernel.json': Permission denied
Execution halted
rm: cannot remove '/tmp/Rtmpja4gDt/fileaf337eb517bd/kernelspec/kernel.js': Permission denied
rm: cannot remove '/tmp/Rtmpja4gDt/fileaf337eb517bd/kernelspec/kernel.json': Permission denied
rm: cannot remove '/tmp/Rtmpja4gDt/fileaf337eb517bd/kernelspec/logo-svg.svg': Permission denied
rm: cannot remove '/tmp/Rtmpja4gDt/fileaf337eb517bd/kernelspec/logo-64x64.png': Permission denied
Error in commandArgs(TRUE)[[1]] : subscript out of bounds
Calls: <Anonymous>
Execution halted

Now, I am not an idiot and I understand that there may be either a permissions issue with running the command or an issue with Nix. Either way, I am struggling to determine what the proper solution is and would greatly appreciate some assistance.