How to check if R is installed in Ubuntu?

I'm new to R, and I think I installed R earlier, but not sure.

Is there a way to find out if R is installed on your system?

+4
source share
2 answers

Just to summarize a few answers from comments with less snark ...

  • input Ron the command line can cause it. If this does not work, R is probably not installed.
  • R may be in /usr/bin/. Look into this folder. If not, there is an even more subtle chance that you have R.
  • Look for a file named R otherwise.
+9
source

ubuntu which . which - Unix, . R - PATH, :

john@ubuntu:~$ which R
/usr/bin/R

type:

john@ubuntu:~$ type R
R is /usr/bin/R

type - Unix, , , .

R, PATH, locate, , find, , , R,

john@ubuntu:~$ locate -b R | fgrep -w R/bin
/usr/lib/R/bin/R
/usr/lib/R/bin/REMOVE
/usr/lib/R/bin/Rcmd
/usr/lib/R/bin/Rd2pdf
/usr/lib/R/bin/Rdconv
/usr/lib/R/bin/Rdiff
/usr/lib/R/bin/Rprof
/usr/lib/R/bin/Rscript
/usr/lib/R/bin/exec/R
+12

All Articles