Skip to content

Instantly share code, notes, and snippets.

@mikmart
Created May 5, 2023 22:04
Show Gist options
  • Save mikmart/b0241adf58a90004d1cccc98accf2efa to your computer and use it in GitHub Desktop.
Save mikmart/b0241adf58a90004d1cccc98accf2efa to your computer and use it in GitHub Desktop.
C Macros for R
#define PRINT_TYPEOF(x) \
Rprintf("Type of %s is %s [%d].\n", #x, Rf_type2char(TYPEOF(x)), TYPEOF(x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment