+1 vote
2 views
in R Programming by (3.9k points)
What does startup profiles of R professionals include, I have no customization in R and I want to add some.

Ex. I want my output and input of distinct colors and also I want to highlight my syntax.

1 Answer

0 votes
by (43.2k points)

You can refer to the following set up of the code:

options("width"=160)                # wide display with multiple monitors

options("digits.secs"=3)            # show sub-second time stamps

r <- getOption("repos")             # hard code the US repo for CRAN

r["CRAN"] <- "http://cran.us.r-project.org"

options(repos = r)

rm(r)

## put something this is your .Rprofile to customize the defaults

setHook(packageEvent("grDevices", "8, height=8, 

                                             xpos=0, pointsize=10, 

                                             #type="nbcairo"))  # Cairo device

                                             #type="cairo"))    # other Cairo dev

                                             type="xlib"))      # old default

## from the AER book by Zeileis and Kleiber

options(prompt="R> ", digits=4, show.signif.stars=FALSE)

options("pdfviewer"="okular")         # on Linux, use okular as the pdf viewer

If you are interested in R certification, then kindly refer to the R programming certification

Related questions

0 votes
1 answer
+1 vote
1 answer
asked May 29, 2019 in R Programming by Nigam (4.1k points)
+1 vote
2 answers
asked May 29, 2019 in R Programming by Suresh (3.4k points)
+1 vote
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...