notify: Create a desktop notification

Description Usage Arguments Details Examples

Description

How exactly the notification appears is platform dependent:

Usage

1
notify(msg, title = "R notification", image = NULL)

Arguments

msg

Message to show. It may contain newline characters.

title

Message title. Typically shown on the top, with larger font.

image

Image to show in the notification. By default the official R logo is shown on macOS, and an alternative logo is shown on other OSes, because of licensing reasons. You can specify a PNG file here, to show instead of the R logo. This currently does not work on older Windows versions (before Windows 8), which does not allow PNG files, only ICO icons.

Details

All notification systems support showing a title and an image, as part of the notification.

Examples

1
2
3
4
5
6
## Not run: 
notify("Hello world!")
notify("Hello world!", title = "Introduction")
notify("Hello world!", title = "Introduction", image = "mylogo.png")

## End(Not run)

notifier documentation built on Feb. 1, 2017, 5 p.m.

Related to notify in notifier...