Skip to content

Commit

Permalink
Update NEWS and README
Browse files Browse the repository at this point in the history
  • Loading branch information
andrie committed Mar 23, 2024
1 parent 1cdbd6d commit e124fac
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- {os: windows-latest, r: 'release'}
# Use 3.6 to trigger usage of RTools35
- {os: windows-latest, r: '3.6'}
# - {os: windows-latest, r: '3.6'}
# use 4.1 to check with rtools40's older compiler
- {os: windows-latest, r: '4.1'}

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ $RECYCLE.BIN/
.DS_Store
docs
revdep
README_files/
.Renviron

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Authors@R: c(
License: GPL-2
Copyright: Andrie de Vries, Microsoft Corporation
Title: Create a Mini Version of CRAN Containing Only Selected Packages
Description: Makes it possible to create an internally consistent
# Description: Makes it possible to create an internally consistent
repository consisting of selected packages from CRAN-like repositories.
The user specifies a set of desired packages, and 'miniCRAN' recursively
reads the dependency tree for these packages, then downloads only this
Expand Down
6 changes: 6 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
miniCRAN v0.2.16.9000
================

* Support for `mac.binary.big-sur` (#152)
* Rewrite tests to use [Posit Public Package Manager](https://packagemanager.posit.co), since MRAN ceased to operate their service during 2023

miniCRAN v0.2.16
================

Expand Down
9 changes: 4 additions & 5 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
output: github_document
format: gfm
---

<!-- README.md is generated from README.Rmd. Please edit that file -->
Expand All @@ -16,12 +16,11 @@ knitr::opts_chunk$set(
# miniCRAN <img src='man/figures/miniCRAN-logo.png' align="right" height="139" />

<!-- badges: start -->
[![R build status](https://github.com/andrie/miniCRAN/workflows/R-CMD-check/badge.svg)](https://github.com/andrie/miniCRAN/actions)
[![CRAN status](https://www.r-pkg.org/badges/version/miniCRAN)](https://CRAN.R-project.org/package=miniCRAN)
[![R-CMD-check](https://github.com/andrie/miniCRAN/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/andrie/miniCRAN/actions/workflows/R-CMD-check.yaml)
[![Code coverage](https://codecov.io/gh/andrie/miniCRAN/branch/main/graph/badge.svg)](https://codecov.io/gh/andrie/miniCRAN?branch=main)
[![CRAN version](http://www.r-pkg.org/badges/version/miniCRAN)](http://www.r-pkg.org/pkg/miniCRAN)
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/miniCRAN)](http://www.r-pkg.org/pkg/miniCRAN)
[![CRAN status](https://www.r-pkg.org/badges/version/miniCRAN)](https://cran.r-project.org/package=miniCRAN)
[![R-CMD-check](https://github.com/andrie/miniCRAN/workflows/R-CMD-check/badge.svg)](https://github.com/andrie/miniCRAN/actions)

<!-- badges: end -->

Create a mini version of CRAN containing only selected packages
Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@


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

# miniCRAN <img src='man/figures/miniCRAN-logo.png' align="right" height="139" />

<!-- badges: start -->

[![R build
status](https://github.com/andrie/miniCRAN/workflows/R-CMD-check/badge.svg)](https://github.com/andrie/miniCRAN/actions)
[![CRAN
status](https://www.r-pkg.org/badges/version/miniCRAN.png)](https://CRAN.R-project.org/package=miniCRAN)
[![R-CMD-check](https://github.com/andrie/miniCRAN/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/andrie/miniCRAN/actions/workflows/R-CMD-check.yaml)
[![Code
coverage](https://codecov.io/gh/andrie/miniCRAN/branch/main/graph/badge.svg)](https://codecov.io/gh/andrie/miniCRAN?branch=main)
[![CRAN
version](http://www.r-pkg.org/badges/version/miniCRAN)](http://www.r-pkg.org/pkg/miniCRAN)
[![CRAN RStudio mirror
downloads](http://cranlogs.r-pkg.org/badges/miniCRAN)](http://www.r-pkg.org/pkg/miniCRAN)
[![CRAN
status](https://www.r-pkg.org/badges/version/miniCRAN)](https://cran.r-project.org/package=miniCRAN)
[![R-CMD-check](https://github.com/andrie/miniCRAN/workflows/R-CMD-check/badge.svg)](https://github.com/andrie/miniCRAN/actions)
downloads](http://cranlogs.r-pkg.org/badges/miniCRAN.png)](http://www.r-pkg.org/pkg/miniCRAN)

<!-- badges: end -->

Create a mini version of CRAN containing only selected packages
Expand Down
44 changes: 44 additions & 0 deletions tests/testthat/test-r-version.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

# R.version
R.version_3.6.0 <- structure(list(
platform = "x86_64-w64-mingw32",
arch = "x86_64",
os = "mingw32",
system = "x86_64, mingw32",
status = "",
major = "3", minor = "6.0",
year = "2019", month = "04", day = "26",
`svn rev` = "76424", language = "R",
version.string = "R version 3.6.0 (2019-04-26)",
nickname = "Planting of a Tree"
), class = "simple.list")

# getRversion()
getRversion_3.6.0 <- structure(list(
c(3L, 6L, 0L)),
class = c("R_system_version", "package_version", "numeric_version"))

expect_3.6 <- function(object) {
expect_equal(object, "3.6")
}

test_that("twoDigitRversion() behaves", {
expect_3.6(
twodigitRversion(list(major = 3, minor = 6))
)
expect_3.6(
twodigitRversion("3.6")
)
expect_3.6(
twodigitRversion("3.6.0")
)
expect_3.6(
twodigitRversion("3.6.1")
)
expect_3.6(
twodigitRversion(R.version_3.6.0)
)
expect_3.6(
twodigitRversion(getRversion_3.6.0)
)
})

0 comments on commit e124fac

Please sign in to comment.