Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zkamvar/mwe_eigen_segfault

A minimum working example for a segfault
https://github.com/zkamvar/mwe_eigen_segfault

Last synced: 2 days ago
JSON representation

A minimum working example for a segfault

Awesome Lists containing this project

README

        

# mwe_eigen_segfault
A minimum working example for a segfault

This repository contains the data and R script for a minimum working example to reproduce
https://github.com/rocker-org/rocker/issues/156

# Usage

### From R:

```r
source("https://raw.githubusercontent.com/zkamvar/mwe_eigen_segfault/master/mwe.R", echo = TRUE)
```

### With Docker:

```
git clone https://github.com/zkamvar/mwe_eigen_segfault.git
cd mwe_eigen_segfaut

# Works
docker run --rm -ti -v $(pwd):/mwe rocker/rstudio:ba939a8f4592 /bin/bash
cd mwe; R
source("mwe.R", echo = TRUE)

# Fails
docker run --rm -ti -v $(pwd):/mwe rocker/hadleyverse:1d713efa07b0 /bin/bash
cd mwe; R
source("mwe.R", echo = TRUE)
```

# Files

- `microbov_scale_crossprod.csv`: a square matrix derived from the "microbov" object in the adegenet package
- `mwe.R`: a minimum working example utilizing the data above.
- `lwe.R`: a working example that gives context to the error.