-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
92 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
Package: dsn | ||
Title: Data Source Name Helpers for Use With GDAL | ||
Version: 0.0.1.9010 | ||
Title: Data Source Name and Description Helpers for Use With 'GDAL' | ||
Version: 0.0.1.9011 | ||
Authors@R: | ||
person("Michael", "Sumner", , "[email protected]", role = c("aut", "cre")) | ||
Description: Simple helpers for GDAL data source names (DSN), for prefix and suffix and other handling. | ||
c(person("Michael", "Sumner", , "[email protected]", role = c("aut", "cre")), | ||
person("Matt", "Dowle", role = "ctb", comment = "wrote the source code used here in C_addr, originally in data.table")) | ||
Description: Simple helpers for 'GDAL' data source names ('DSN'), prefix and | ||
suffix and other handling. 'GDAL' is the Geospatial Data Abstraction Library, | ||
not used by this package directly. | ||
License: MIT + file LICENSE | ||
Encoding: UTF-8 | ||
Roxygen: list(markdown = TRUE) | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#' @keywords internal | ||
"_PACKAGE" | ||
## usethis namespace: start | ||
#' @useDynLib dsn, .registration = TRUE | ||
## usethis namespace: end | ||
NULL |
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.o | ||
*.so | ||
*.dll |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include <Rinternals.h> | ||
|
||
SEXP C_addr(SEXP x) | ||
{ | ||
// A better way than : http://stackoverflow.com/a/10913296/403310 | ||
char buffer[32]; | ||
snprintf(buffer, 32, "%p", (void *)x); | ||
return(Rf_mkString(buffer)); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <Rinternals.h> | ||
#include <R_ext/Rdynload.h> | ||
|
||
|
||
|
||
/* .Call calls */ | ||
extern SEXP C_addr(SEXP x); | ||
|
||
static const R_CallMethodDef CallEntries[] = { | ||
{"C_addr", (DL_FUNC) &C_addr, 1}, | ||
{NULL, NULL, 0} | ||
}; | ||
|
||
void R_init_addr(DllInfo *dll) { | ||
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); | ||
R_useDynamicSymbols(dll, FALSE); | ||
} |