Use perl regex syntax, get perl results in R!
#perl $string = 'This is a test'; print scalar $string =~ m/this/i;
#R library(perlrer) string = 'This is a test' string %m% '/this/i'
#perl $string = 'This is a test'; $string =~ s/this/that/i; print $string;
#R library(perlrer) string = 'This is a test' string %s% '/this/that/i'
#perl @alist = ('one', 'two', 'three'); $astring = 'four'; $joined_str = join(':', @alist, $astring); print $joined_str, "\n"; @split_str = split(/:/, $joined_str); print "@split_str\n";
#R library(perlrer) alist = c('one', 'two', 'three') astring = 'four' joined_str = pjoin(':', alist, astring) joined_str split_str = psplit(':', joined_str) split_str
#perl open IN, "<", "README.Rmd"; $count = 0; while($line = <IN> and $count < 2){ print $line; $count++; } close IN;
#R IN = popen("README.Rmd") count = 0 while(line %<>% IN && count < 2){ print(line) count=count+1; } pclose(IN);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.