Praise Package--r give you praise!

Source: Internet
Author: User

1.praise or something?

Praise package is a feature: Praise you!

What's with the 2.praise bag? 2.1 Installation

Direct installation:

Install.packages ("praise")

Install from GitHub:

Library (Devtools) Install_github ("gaborcsardi/praise")
2.2 Start liking you

Usage:

" You are ${adjective}! ")

Use random words to replace adjective to compliment you!

> Library (Praise) 
>praise () [1]"You are fine!">praise () [1]"You are divine!">praise () [1]"You are best!">praise () [1]"You are fantastic!">praise () [1]"You are wonderful!">praise () [1]"You are fantabulous!">praise () [1]"You are splendid!"
2.3 Custom Compliment format

As you can see, the pre-set compliment format is ${adjective}! and can also be customized in a custom format!

# # First Letter uppercase> Praise ("${exclamation}! This ${rpackage} is ${adjective}!")[1]"yay! This program is lovely!"> Praise ("${exclamation}! This ${rpackage} is ${adjective}!")[1]"gee! this is glorious!"> Praise ("${exclamation}! This ${rpackage} is ${adjective}!")[1]"Yahoo! This program is super!"> Praise ("${exclamation}! This ${rpackage} is ${adjective}!")[1]"mhm! this is fantastic!"> Praise ("${exclamation}! This ${rpackage} is ${adjective}!")[1]"yippie! This project is fine!"> Praise ("${exclamation}! This ${rpackage} is ${adjective}!")[1]"ahh! This R package is super!"

# # All letters capitalized> Praise ("${exclamation}! You do have do this ${adverb_manner}!")[1]"huzzah! You do have do this really!"> Praise ("${exclamation}! You do have do this ${adverb_manner}!")[1]"ahhh! You do have do this enthusiastically!"> Praise ("${exclamation}! You do have do this ${adverb_manner}!")[1]"hurray! You do have do this warmly!"> Praise ("${exclamation}! You do have do this ${adverb_manner}!")[1]"ole! You do have do this kindly!"> Praise ("${exclamation}! You do have do this ${adverb_manner}!")[1]"ho-ho! You do have do this swiftly!"

where ${exclamation} ,${adjective} , and ${adverb_manner}, can be understood as a thesaurus in the package, respectively, to express the exclamation and modality, Each thesaurus contains a range of words to compliment you!

To view the available thesaurus:

> names (praise_parts) [1"adjective""adverb  ""adverb_manner"" created "" Creating ""exclamation"rpackage" 
3. Customizing the startup environment

Open the configuration file Rprofile.site file in the ETC folder in the R installation location:

in this file, the contents of the settings include the default editor, Cran image selection, automatic loading of packages, and so on .

At the end of opening the Rprofile.site document, add the following code:

. First <- function () {Library (Praise)  Cat (Praise ("${exclamation}! ${exclamation}! Handsome man,you has done this ${adverb_manner}! "),"\ n", Praise (),"\ n", Praise ()," \ n ", Date (),"\ n")}

The restart Rstudio is displayed as follows:

This article links:

Http://www.cnblogs.com/homewch/p/5749850.html

Praise Package--r give you praise!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.