Skip to content

Commit

Permalink
Merge pull request #37 from USCbiostats/master
Browse files Browse the repository at this point in the history
match branches
  • Loading branch information
gmweaver authored Mar 1, 2020
2 parents 25c1408 + 95d07e4 commit 2a2311b
Show file tree
Hide file tree
Showing 56 changed files with 1,329 additions and 964 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
os: osx
- r: devel
os: linux
- r: oldrel
os: linux
- r: oldrel
os: osx

osx_image: xcode10.2

Expand Down
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: xrnet
Type: Package
Title: Hierarchical Regularized Regression
Version: 0.1.6
Version: 0.1.7
Authors@R: c(
person("Garrett", "Weaver", email = "gmweaver.usc@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-9918-8386")),
person("Juan Pablo", "Lewinger", email = "lewinger@usc.edu", role = c("ctb", "ths"))
Expand All @@ -21,7 +21,6 @@ Suggests:
rmarkdown,
testthat,
Matrix,
glmnet,
doParallel
LinkingTo:
Rcpp,
Expand All @@ -34,5 +33,5 @@ Imports:
bigmemory,
methods
Depends:
R (>= 3.6)
R (>= 3.5)
SystemRequirements: C++11
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# xrnet 0.1.7

* Patched release to fix tests on Solaris OS and removed test dependency on glmnet

# xrnet 0.1.6

* First release to CRAN
Expand Down
26 changes: 15 additions & 11 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ knitr::opts_chunk$set(
)
```

[![Build Status](https://travis-ci.org/USCbiostats/xrnet.svg?branch=development)](https://travis-ci.org/USCbiostats/xrnet)
[![Build status](https://ci.appveyor.com/api/projects/status/6pr8hlc4wg9vjcxd?svg=true)](https://ci.appveyor.com/project/gmweaver/xrnet)
[![codecov](https://codecov.io/gh/USCbiostats/xrnet/branch/development/graph/badge.svg)](https://codecov.io/gh/USCbiostats/xrnet)
[![Travis Build Status](https://travis-ci.org/USCbiostats/xrnet.svg?branch=development)](https://travis-ci.org/USCbiostats/xrnet)
[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/6pr8hlc4wg9vjcxd?svg=true)](https://ci.appveyor.com/project/gmweaver/xrnet)
[![codecov](https://codecov.io/gh/USCbiostats/xrnet/branch/master/graph/badge.svg)](https://codecov.io/gh/USCbiostats/xrnet)
[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![DOI](https://joss.theoj.org/papers/10.21105/joss.01761/status.svg)](https://doi.org/10.21105/joss.01761)

# Introduction

Expand All @@ -37,7 +38,15 @@ Note that our model allows for the predictor coefficients, beta, to shrink towar

This package extends the coordinate descent algorithm of Friedman et al. 2010 (used in the R package **glmnet**) to allow for this variable-specific generalization and to fit the model described above. Currently, we allow for continuous and binary outcomes, but plan to extend to other outcomes (i.e. survival) in the next release.

# Setup
# Installation

#### From CRAN

```{r, eval = FALSE}
install.packages("xrnet")
```

#### From Github (most up-to-date)

1. OS-specific prerequisites
+ *Windows*: Install [RTools](https://cran.r-project.org/bin/windows/Rtools/) (not an R package)
Expand All @@ -53,17 +62,12 @@ devtools::install_github("USCbiostats/xrnet")
devtools::install_github("USCbiostats/xrnet", ref = "development")
```

4. Load the package

```{r load-package}
library(xrnet)
```

# A First Example

As an example of how you might use xrnet, we have provided a small set of simulated external data variables (ext), predictors (x), and a continuous outcome variable (y). First, load the example data:
As an example of how you might use xrnet, we have provided a small set of simulated external data variables (ext), predictors (x), and a continuous outcome variable (y). First, load the package and the example data:

```{r load-data}
library(xrnet)
data(GaussianExample)
```

Expand Down
29 changes: 16 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

[![Build
[![Travis Build
Status](https://travis-ci.org/USCbiostats/xrnet.svg?branch=development)](https://travis-ci.org/USCbiostats/xrnet)
[![Build
[![Appveyor Build
status](https://ci.appveyor.com/api/projects/status/6pr8hlc4wg9vjcxd?svg=true)](https://ci.appveyor.com/project/gmweaver/xrnet)
[![codecov](https://codecov.io/gh/USCbiostats/xrnet/branch/development/graph/badge.svg)](https://codecov.io/gh/USCbiostats/xrnet)
[![codecov](https://codecov.io/gh/USCbiostats/xrnet/branch/master/graph/badge.svg)](https://codecov.io/gh/USCbiostats/xrnet)
[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![DOI](https://joss.theoj.org/papers/10.21105/joss.01761/status.svg)](https://doi.org/10.21105/joss.01761)

# Introduction

Expand Down Expand Up @@ -53,7 +54,15 @@ variable-specific generalization and to fit the model described above.
Currently, we allow for continuous and binary outcomes, but plan to
extend to other outcomes (i.e. survival) in the next release.

# Setup
# Installation

#### From CRAN

``` r
install.packages("xrnet")
```

#### From Github (most up-to-date)

1. OS-specific prerequisites
- *Windows*: Install
Expand All @@ -77,21 +86,15 @@ devtools::install_github("USCbiostats/xrnet")
devtools::install_github("USCbiostats/xrnet", ref = "development")
```

4. Load the package

<!-- end list -->

``` r
library(xrnet)
```

# A First Example

As an example of how you might use xrnet, we have provided a small set
of simulated external data variables (ext), predictors (x), and a
continuous outcome variable (y). First, load the example data:
continuous outcome variable (y). First, load the package and the example
data:

``` r
library(xrnet)
data(GaussianExample)
```

Expand Down
6 changes: 6 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ environment:
- R_VERSION: devel
R_ARCH: x64

- R_VERSION: oldrel
R_ARCH: i386

- R_VERSION: oldrel
R_ARCH: x64

artifacts:
- path: '*.Rcheck\**\*.log'
name: Logs
Expand Down
16 changes: 8 additions & 8 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## Resubmission
This is a resubmission. In this version I have:
## Submission

* Added reference to paper describing methods in DESCRIPTION
This is a patch to fix the test errors generated on Solaris OS.

* Removed the copy of GPL-2 license
* Checks reran on all other platforms as well

* Added \value to any exported methods that were missing it in .Rd files
* The test errors were due to incorrect comparison solutions being generated by another R package on Solaris.
I now pre-generate comparison solutions and have removed the dependency on the other R package previously
used to generate the comparisons. The changes did not require any modifications to the src code.

* Removed \dontrun from example in plot.tune_xrnet documentation

* Cleaned up error messages from stop("Error: ...") to stop("...")
* Removed glmnet from 'Suggests' in Description as package is no longer needed for tests. This allowed
for the minimum R version to be changed from 3.6 back down to 3.5 to accomodate the old release as well.
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/CODE_OF_CONDUCT.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 26 additions & 17 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/coef.tune_xrnet.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/coef.xrnet.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/define_enet.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/define_lasso.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/define_penalty.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/define_ridge.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/ext_linear.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/reference/figures/plot-error-curve-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2a2311b

Please sign in to comment.