Blog Archives

How to start a new package with testing in R

May 30, 2019
By

# Navigate where you want your folder to be located setwd("C:/Users/chief/Documents/Github") # Assumes usethis is installed usethis::create_package("foo") # Say yes or no to next (annoying) popup window, it doesn't matter. # Add a test environment setw...

Read more »

How to start a new package with testing in R

May 30, 2019
By

# Navigate where you want your folder to be locatedsetwd("C:/Users/chief/Documents/Github")# Assumes usethis is installedusethis::create_package("foo")# Say yes or no to next (annoying) popup window, it doesn't matter.# Add a test environmentsetwd("foo")usethis::use_testthat()# Add first test function to at least get something in that folder.# Go to foo\tests\testthat# and add this file.context("foo")library(foo)test_that("I'm testing something", {  # do something with your code  expect_equal(1:4,...

Read more »

CAS RPM: Installing & running Rattle in RStudio

April 12, 2017
By

At the Ratemaking and Product Management (RPM) seminar of the Casualty Actuarial Society (CAS) in San Diego last month, Linda Brobeck, Peggy Brinkmann, and yours truly gave a concurrent session on a machine learning technique called decision tree analysis. See the DSPA-2 session -- and other sessions -- at this link. Technical issues precluded showing the video of  installing and running Rattle within RStudio. Thus...

Read more »

ChainLadder version 0.2.3 available on CRAN

October 27, 2016
By

ChainLadder is an R package for actuarial analysis of General / Property & Casualty insurance reserves. Version 0.2.3 on CRAN is is the first update in about a year. For the most part, the new version expands upon existing capabilities, as illustrated in the News vignette. Two of the most important arethe rownames (origin period) of a Triangle need no longer be numeric...

Read more »

October 2016 BARUG Meeting

October 16, 2016
By

The October meeting of the San Francisco Bay Area R User Group held at Santa Clara University consisted of socializing, an intro, and three speakers. In the intro, host representative Sanjiv Das highlighted the curriculum and advisory board of the school's new MS in Business Analytics program. The first speaker, yours truly, reenacted Sara Silverstein's Benford's Law post using R and...

Read more »

Benford’s Law in R (cont.): Actual Data

September 8, 2016
By
Benford’s Law in R (cont.): Actual Data

This is the second post based on Sara Silverstein's blog on Benford’s Law. Previously we duplicated the comparison of the proportion of first digits from a series of randomly generated numbers, and successive arithmetic operations on those numbers, and saw that the the more complicated the operation, the closer the conformance.In this post we investigate the conformance with actual data,...

Read more »

Benford’s Law Graphed in R

August 30, 2016
By
Benford’s Law Graphed in R

Using R to replicate Sara Silverstein's post at BusinessInsider.comA first-year student near and dear to my heart at the Kellogg School of Management thought I would be interested in this Business Insider story by Sara Silverstein on Benford’s Law....

Read more »

Forking, Cloning, and Pull Requests with Github Desktop

August 11, 2016
By

This is the best explanation I've found of how to collaborate on someone else's repository. Bonus! it's a video:

Read more »

A Diversified R in Insurance Conference

July 31, 2016
By
A Diversified R in Insurance Conference

I visited London this month for the first time in many years, having been honored to participate in the fourth annual R in Insurance conference held at the Cass Business School. Mired in the deep rooted polarity of the current American presidential election, this traveler was refreshed and uplifted by London's surprising and multi-faceted diversity. The conference program organized...

Read more »

R Tools for Visual Studio (RTVS) now available: good news for MS-only shops

April 1, 2016
By

Microsoft informs in Newsletter #2 that they are looking for people who are willing to evaluate an "early access trial" version of their Visual Studio IDE for R, called RTVS (for R Tools for Visual Studio).Based on the video, RTVS has the same four-window design as RStudio, so there's not an immediate struggle with an unfamiliar layout. David Smith's...

Read more »

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)