Created
October 10, 2017 10:04
-
-
Save stla/8926d42cf18e71dcac0f03705d55cff0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Bug DLL" | |
author: "Stéphane Laurent" | |
date: "10 octobre 2017" | |
output: html_document | |
editor_options: | |
chunk_output_type: console | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
``` | |
```{r} | |
dll <- "smallDLL.dll" | |
dyn.load(dll) | |
.C("HsStart") | |
``` | |
```{r} | |
.C("addOne", x=1L, result=0L)$result | |
``` | |
```{r} | |
dyn.unload(dll) | |
``` | |
```{r} | |
dll <- "smallDLL.dll" | |
dyn.load(dll) | |
.C("HsStart") | |
``` | |
```{r} | |
.C("addOne", x=1L, result=0L)$result | |
``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment