Updating R packages

In this post, I cover updating R packages in RStudio.  You have a few options for updating your R packages in RStudio.

(Option 1) From the menu, select Tools -> “Check for Package Updates”RStudio_Menu_Tools_CheckforPackageUpdates

You will get this message if all packages are up-to-date:


(Option 2) From the Packages tab in the bottom-right pane, click on “Update”RStudio_PackagesTab_Update

(Option 3) Execute the command update.packages()


You may see output like this …


Enter “y” to update, “N” to not update, and “c” to cancel.

Thanks for reading!


Changing the Oracle logo in OBIEE 12c

Most customers want to change the Oracle logo located in the top-left corner of the OBIEE website to their own company’s logo.


After upgrading from OBIEE 11g to OBIEE 12c, your previous change for this logo will not carry forward, or of course, if you did a new install, you will need to make a change to replace the Oracle logo with your own.  This post explains the simplest way to change the Oracle logo in OBIEE 12c.

Perform a search (recursive search) on file system of your OBIEE 12c server, in all OBIEE directories, for files with “oracle_logo” or “oracle_logo.png”.
Your search will return many directories containing this file.  You will need to change the file in a subset of these directories.

Since you will be likely using the “s_Alta” style in OBIEE 12c, pick out the directories with “s_Alta” in their path.  There should be about 9 directories and they will look like the directories listed below.  If you are not using “s_Alta”, then pick the directories with the appropriate style.

Get your company logo and make it a similar size to the Oracle Logo image.  Rename your company logo file to the name oracle_logo.png.

Go into each of the directories you identified in the above steps, and rename the oracle_logo.png file to oracle_logo.bkup or oracle_logo.orig.
Then, copy your company logo (that is now renamed to oracle_logo.png) into all the directories.

The directory paths may look something like these shown below, but will be different.  If you not using BI Mobile App Designer (bimad) or BI Publisher (bipublisher), you can ignore the bottom 6 directories, and just update the 3 analytics directories.



Good luck with your change.  Thanks for reading!


Exploring the RStudio Interface

In this post we will explore the RStudio interface.  This is where you will manage your R environment, issue commands for processing and analyzing data, create scripts, view results, and much more.  Below is an image of the default RStudio interface.


On the left:
Console – the window where you enter commands, and where output is displayed.

On the top-right:
Environment tab – shows the variables and values created through the console
History tab – shows the history of past executed commands

On the bottom-right:
Files tab – displays folders and files from the file system, from which you can select files, set working directory, create folders, copy and move folders and files, and more.
Plots tab – displays the plots that have been created and allows for you to export them.
Packages tab – displays all the packages currently installed and available.  Loaded packages will have the checkbox checked and packages must be loaded before they can be used.
Help tab – useful for getting help about R and R packages, and keyword search is available which can be very helpful when you don’t know exactly what you are looking for.
Viewer tab – can be used to view local web content, such as, static HTML files written to the session temporary directory or a locally run web application.

On the top-left (when a script is created or opened):
– Script pane and tabs – When you create or open a R script, it will create a new pane area in the top-left of the application window, and the Console pane will get shifted down to the bottom-left area.


A new Script tab will open in this pane for each new script opened or created. From this window, you will be able to run your script line by line or in its entirety, among many other functions.

Thanks for reading!

Installing, Loading, Unloading, and Removing R Packages in RStudio

R has thousands of packages available for statistics and data analytics, but before you can use them, they need to be installed.  In this post I cover installing, loading, unloading, and removing R packages in RStudio. In these examples, I use the ggplot2 package – a popular graphics and visualization package in R.  Wherever you see ggplot2 in the examples below, you can replace it with the package you want to perform these actions on.

To install a package via the User Interface

In RStudio, select Tools -> Install Packages from the main menu, or click Install in the Packages tab on the bottom-right.

The Install Packages dialog appears.

Start typing the name of the package you want to install, and a list of all packages that start with the letters you have type will show up in the selection list.

Select (or type the full name of) the package you want to install, ensure that “Install dependencies” is checked, and click “Install”.
The statement will be automatically entered and run as shown below.

And the output will show if the package is successfully installed.

At this point, you will be able to see the package in the list in the Packages tab on the right.

To install a package via script
Instead of using the user interface (menu), you can also install packages directly via script.


See script statement below.  And as before, the package shows in the Packages tab.

After a package has been installed, it needs to be loaded before you can use it.

Loading and Unloading a package (via user interface or script):

To load a package you can simply check the checkbox beside the package name in the Packages tab – as shown by the yellow box highlight below.  This will automatically enter and execute the command shown with the yellow arrow.

Or you can enter the script, by entering the command as shown with the green arrow:


As an alternative, the require(ggplot2) command will also load the package.

To unload the package, you can simply uncheck the checkbox beside the package name in the Packages tab, or enter the command shown by the red arrow:

detach("package:ggplot2", unload=TRUE)

R_Loading_Unloading_Packages You will notice that after running the detach command, the Package checkbox will not be checked (will be unchecked).

To remove (uninstall) a package (via user interface or script):

To remove a package, you can simply click the “x” icon shown to the right of the package in the Packages window. See the yellow box highlight beside ggplot2 below.

Or you can run the script command as shown below in the Console window.



The below shows the output after removing a package.  You will notice that the package is no longer in the Packages list on the right hand side.  In this example, ggplot2 is no longer in the list of packages.

An advantage of using the script option instead of the user interface methods to perform the above actions is that you will have a history of what you have done.

Thanks for reading!

Installing RStudio on Windows

RStudio is an open-source integrated development environment (IDE) for R. It also has commercial versions with expansive capabilities available (at a cost).  It runs on the desktop with multiple operating systems, or in a browser connected to a RStudio server.  RStudio includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management. This post covers installing RStudio.  Note that R needs to be installed first – see this post for installing R.

To get started, go to

Under RStudio, click Download.

Choose the desired version of RStudio.  You will likely want the “RStudio Desktop (Open Source License)” version. On the same page, you will be able to read about the various options available – free and pay versions.

This will bring you down in the page to the installers.  Choose the installer that is appropriate for you.  In this example, we are installing on Windows, and so we chose the “RStudio 1.0.153 – Windows Vista/7/8/10” version.  Note: RStudio requires that R is installed.  If you have not already installed R, do so first (see this post for Installing R).

After the download is complete, run the exe by double-clicking on it.

Click Next at the Welcome screen.

Choose the install directory, click Next

Chooses a Start Menu Folder, click Install

Installing …

Complete the installation.

Run RStudio

RStudio IDE

You will notice that the left window “Console” is the same as the “R Console” window in the stand-alone R installation.  This is because RStudio is built on top of R.

Good luck on your R journey!

Installing R on Windows

R is an open source software platform for data manipulation, statistical computing, calculation, analytics, and graphics.  It provides a wide variety of statistical/mathematical and high-quality graphical capabilities.  Some of the statistical capabilities include linear and nonlinear modeling, classical statistical tests, time-series analysis, classification, and clustering, and more.
You will find R useful in Analytics and Business Intelligence environments where data needs to be analyzed to uncover patterns or for better understanding and help make predictions and decisions.
In this post, we cover the installation of R.

To get started, go to

Click the “download R” link (underlined in yellow below).

Choose the CRAN (Comprehensive R Archive Network) mirror location closest to you.

Choose the version for your install computer’s operating system (OS). In this example, we are installing on Windows – so we chose “Download R for Windows”.

Assuming this is your first install, click “base” or “Install R for the first time”.

Then, click “Download R 3.4.1 for Windows” (or whatever the appropriate version is at the time)

After the download is complete, go to the download directory, and double-click the R exe to run it.

Choose your language

Click Next

Review the license agreement, click Next

Accept the default directory or enter/select a new one.

Select the components you want.  If your PC is 32-bit, then unselect 64-bit if it is shown as an option.  If your PC is 64-bit, you can install both 32-bit and 64-bit (default) or choose one of them.

Choose No and click Next (unless you want to customize the startup options for R, but this can be done later)

Click Next

Choose Icon and Registry options


Click Finish to complete the installation

Desktop and Quick Launch icons
R_install_desktop_icons     R_install_quicklaunch_icons

Run R.

Next, we’ll cover installing RStudio.

Good luck on your R journey.

Installing the OBIEE 12c Client on Windows

Installing the OBIEE 12c Client is straight forward.  Here are the steps.

Visit the Oracle Business Intelligence page on the Oracle website. Go to the Downloads tab.
Select the version of Oracle Business Intelligence (OBI) 12c that you want to install.

When the version download page appears, select “Accept the License Agreement”, and then under “Oracle Business Intelligence Developer Client Tool (12.x.x.x)”, click on “for Windows x86-64 bit” – (see green arrows below)

Download and save the file to your computer.

After the download is complete, go to the downloaded zip file …
Right-click on the file and select Extract All.  Or extract using another method.

After the executable has been extracted, right-click on it and “Run as administrator”.

This will start the installer

OBIEE12c_PreparingTheInstaller   OBIEE12c_Step0of5

Click through the next 5 steps




After the installation is complete, run one of the applications: Start -> Oracle Business Intelligence Client -> Administration

The Oracle BI Administration Tool should open and be ready for you to use it.

Thanks for reading. Hope this helps.