jensenlab / primer3

R interface to Primer3
3 stars 3 forks source link

how can i get `print_output`, use `capture.output` and result is NULL. #1

Open wydty opened 10 months ago

wydty commented 10 months ago

Hi jensen:

how can i get print_output, use capture.output and result is NULL.

> capture.output(  
+   calculate_hairpin('CCCCCATCCGATCAGGGGG', print_output=T)
+ ) -> out
Calculated thermodynamical parameters for dimer:    19  dS = -108.107   dH = -36300 dG = -2770.52   t = 62.6275
SEQ /////---------\\\\\
STR CCCCCATCCGATCAGGGGG

> cat(out)
NULL
wydty commented 10 months ago

Possible reference, https://github.com/coatless-r-n-d/r-c-api-remap-printf https://stackoverflow.com/questions/48312317/is-it-possible-to-grab-scrape-the-call-output-of-c-printf-within-r-or