R Markdown equivalent in SAS












12















i wonder if there is a equivalent of R Markdown in SAS? Or how to do so in SAS? I want to have colored SAS code and its result below.



link to R Markdown: http://rstudio.org/docs/authoring/using_markdown










share|improve this question




















  • 9





    Just do it in R. You know you want to ;-)

    – Andrie
    Jul 23 '12 at 8:46













  • +1 on using R. But I can understand that there might be circumstances where SAS is required, e.g. by the customer.

    – Paul Hiemstra
    Jul 23 '12 at 8:51











  • But if i want to do training materials for SAS i need to use SAS :) it would be better to have something similar for SAS.

    – Maciej
    Jul 23 '12 at 9:01











  • I think it is entirely possible to run SAS with knitr + markdown if you can define a proper language engine: yihui.name/knitr/demo/engines although it sounds ironic... Just note knitr is not restricted to R only; in theory you can use any languages as long as you know how to call them through R.

    – Yihui Xie
    Jul 23 '12 at 15:11








  • 3





    Though it is not what you asked for, there is something akin for LaTeX and SAS: SASweave. homepage.cs.uiowa.edu/~rlenth/SASweave Perhaps the infrastructure could be adapted to output Markdown instead of LaTeX.

    – Brian Diggs
    Jul 23 '12 at 15:56
















12















i wonder if there is a equivalent of R Markdown in SAS? Or how to do so in SAS? I want to have colored SAS code and its result below.



link to R Markdown: http://rstudio.org/docs/authoring/using_markdown










share|improve this question




















  • 9





    Just do it in R. You know you want to ;-)

    – Andrie
    Jul 23 '12 at 8:46













  • +1 on using R. But I can understand that there might be circumstances where SAS is required, e.g. by the customer.

    – Paul Hiemstra
    Jul 23 '12 at 8:51











  • But if i want to do training materials for SAS i need to use SAS :) it would be better to have something similar for SAS.

    – Maciej
    Jul 23 '12 at 9:01











  • I think it is entirely possible to run SAS with knitr + markdown if you can define a proper language engine: yihui.name/knitr/demo/engines although it sounds ironic... Just note knitr is not restricted to R only; in theory you can use any languages as long as you know how to call them through R.

    – Yihui Xie
    Jul 23 '12 at 15:11








  • 3





    Though it is not what you asked for, there is something akin for LaTeX and SAS: SASweave. homepage.cs.uiowa.edu/~rlenth/SASweave Perhaps the infrastructure could be adapted to output Markdown instead of LaTeX.

    – Brian Diggs
    Jul 23 '12 at 15:56














12












12








12


5






i wonder if there is a equivalent of R Markdown in SAS? Or how to do so in SAS? I want to have colored SAS code and its result below.



link to R Markdown: http://rstudio.org/docs/authoring/using_markdown










share|improve this question
















i wonder if there is a equivalent of R Markdown in SAS? Or how to do so in SAS? I want to have colored SAS code and its result below.



link to R Markdown: http://rstudio.org/docs/authoring/using_markdown







r sas knitr






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 23 '12 at 15:13









Yihui Xie

20.6k11108290




20.6k11108290










asked Jul 23 '12 at 8:45









MaciejMaciej

2,2352241




2,2352241








  • 9





    Just do it in R. You know you want to ;-)

    – Andrie
    Jul 23 '12 at 8:46













  • +1 on using R. But I can understand that there might be circumstances where SAS is required, e.g. by the customer.

    – Paul Hiemstra
    Jul 23 '12 at 8:51











  • But if i want to do training materials for SAS i need to use SAS :) it would be better to have something similar for SAS.

    – Maciej
    Jul 23 '12 at 9:01











  • I think it is entirely possible to run SAS with knitr + markdown if you can define a proper language engine: yihui.name/knitr/demo/engines although it sounds ironic... Just note knitr is not restricted to R only; in theory you can use any languages as long as you know how to call them through R.

    – Yihui Xie
    Jul 23 '12 at 15:11








  • 3





    Though it is not what you asked for, there is something akin for LaTeX and SAS: SASweave. homepage.cs.uiowa.edu/~rlenth/SASweave Perhaps the infrastructure could be adapted to output Markdown instead of LaTeX.

    – Brian Diggs
    Jul 23 '12 at 15:56














  • 9





    Just do it in R. You know you want to ;-)

    – Andrie
    Jul 23 '12 at 8:46













  • +1 on using R. But I can understand that there might be circumstances where SAS is required, e.g. by the customer.

    – Paul Hiemstra
    Jul 23 '12 at 8:51











  • But if i want to do training materials for SAS i need to use SAS :) it would be better to have something similar for SAS.

    – Maciej
    Jul 23 '12 at 9:01











  • I think it is entirely possible to run SAS with knitr + markdown if you can define a proper language engine: yihui.name/knitr/demo/engines although it sounds ironic... Just note knitr is not restricted to R only; in theory you can use any languages as long as you know how to call them through R.

    – Yihui Xie
    Jul 23 '12 at 15:11








  • 3





    Though it is not what you asked for, there is something akin for LaTeX and SAS: SASweave. homepage.cs.uiowa.edu/~rlenth/SASweave Perhaps the infrastructure could be adapted to output Markdown instead of LaTeX.

    – Brian Diggs
    Jul 23 '12 at 15:56








9




9





Just do it in R. You know you want to ;-)

– Andrie
Jul 23 '12 at 8:46







Just do it in R. You know you want to ;-)

– Andrie
Jul 23 '12 at 8:46















+1 on using R. But I can understand that there might be circumstances where SAS is required, e.g. by the customer.

– Paul Hiemstra
Jul 23 '12 at 8:51





+1 on using R. But I can understand that there might be circumstances where SAS is required, e.g. by the customer.

– Paul Hiemstra
Jul 23 '12 at 8:51













But if i want to do training materials for SAS i need to use SAS :) it would be better to have something similar for SAS.

– Maciej
Jul 23 '12 at 9:01





But if i want to do training materials for SAS i need to use SAS :) it would be better to have something similar for SAS.

– Maciej
Jul 23 '12 at 9:01













I think it is entirely possible to run SAS with knitr + markdown if you can define a proper language engine: yihui.name/knitr/demo/engines although it sounds ironic... Just note knitr is not restricted to R only; in theory you can use any languages as long as you know how to call them through R.

– Yihui Xie
Jul 23 '12 at 15:11







I think it is entirely possible to run SAS with knitr + markdown if you can define a proper language engine: yihui.name/knitr/demo/engines although it sounds ironic... Just note knitr is not restricted to R only; in theory you can use any languages as long as you know how to call them through R.

– Yihui Xie
Jul 23 '12 at 15:11






3




3





Though it is not what you asked for, there is something akin for LaTeX and SAS: SASweave. homepage.cs.uiowa.edu/~rlenth/SASweave Perhaps the infrastructure could be adapted to output Markdown instead of LaTeX.

– Brian Diggs
Jul 23 '12 at 15:56





Though it is not what you asked for, there is something akin for LaTeX and SAS: SASweave. homepage.cs.uiowa.edu/~rlenth/SASweave Perhaps the infrastructure could be adapted to output Markdown instead of LaTeX.

– Brian Diggs
Jul 23 '12 at 15:56












2 Answers
2






active

oldest

votes


















4














Geshi supports SAS. I think it does a pretty nice job. It is the highlighter in Wikimedia and is also available as a Perl module.



It shouldn't be too hard (famous last words :)) to connect Geshi to Markdown. You could obtain the plots by running a console SAS job. However, I think that as of 2012 (SAS 9.3), you would have to automate the workflow yourself. When one of the markup languages becomes dominant you will probably see more formal support.






share|improve this answer































    0














    This link describes how to generate reports using SAS. From skimming the pdf it seems that you can integrate SAS analyses and text:




    With SAS procedures, SAS DATA steps, and SAS features such as the
    Output Delivery System (ODS) and the macro facility, you have the
    tools to succeed at writing programs that analyze your data and
    create reports







    share|improve this answer
























    • As I know in SAS ODS i can only report results of my analysis...

      – Maciej
      Jul 23 '12 at 9:03











    • There is an option ods text but it don't do what i want which is colored syntax.

      – Maciej
      Jul 23 '12 at 13:45










    protected by Community Nov 16 '18 at 8:43



    Thank you for your interest in this question.
    Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



    Would you like to answer one of these unanswered questions instead?














    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    Geshi supports SAS. I think it does a pretty nice job. It is the highlighter in Wikimedia and is also available as a Perl module.



    It shouldn't be too hard (famous last words :)) to connect Geshi to Markdown. You could obtain the plots by running a console SAS job. However, I think that as of 2012 (SAS 9.3), you would have to automate the workflow yourself. When one of the markup languages becomes dominant you will probably see more formal support.






    share|improve this answer




























      4














      Geshi supports SAS. I think it does a pretty nice job. It is the highlighter in Wikimedia and is also available as a Perl module.



      It shouldn't be too hard (famous last words :)) to connect Geshi to Markdown. You could obtain the plots by running a console SAS job. However, I think that as of 2012 (SAS 9.3), you would have to automate the workflow yourself. When one of the markup languages becomes dominant you will probably see more formal support.






      share|improve this answer


























        4












        4








        4







        Geshi supports SAS. I think it does a pretty nice job. It is the highlighter in Wikimedia and is also available as a Perl module.



        It shouldn't be too hard (famous last words :)) to connect Geshi to Markdown. You could obtain the plots by running a console SAS job. However, I think that as of 2012 (SAS 9.3), you would have to automate the workflow yourself. When one of the markup languages becomes dominant you will probably see more formal support.






        share|improve this answer













        Geshi supports SAS. I think it does a pretty nice job. It is the highlighter in Wikimedia and is also available as a Perl module.



        It shouldn't be too hard (famous last words :)) to connect Geshi to Markdown. You could obtain the plots by running a console SAS job. However, I think that as of 2012 (SAS 9.3), you would have to automate the workflow yourself. When one of the markup languages becomes dominant you will probably see more formal support.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 '12 at 20:18









        LeoLeo

        1,5481119




        1,5481119

























            0














            This link describes how to generate reports using SAS. From skimming the pdf it seems that you can integrate SAS analyses and text:




            With SAS procedures, SAS DATA steps, and SAS features such as the
            Output Delivery System (ODS) and the macro facility, you have the
            tools to succeed at writing programs that analyze your data and
            create reports







            share|improve this answer
























            • As I know in SAS ODS i can only report results of my analysis...

              – Maciej
              Jul 23 '12 at 9:03











            • There is an option ods text but it don't do what i want which is colored syntax.

              – Maciej
              Jul 23 '12 at 13:45
















            0














            This link describes how to generate reports using SAS. From skimming the pdf it seems that you can integrate SAS analyses and text:




            With SAS procedures, SAS DATA steps, and SAS features such as the
            Output Delivery System (ODS) and the macro facility, you have the
            tools to succeed at writing programs that analyze your data and
            create reports







            share|improve this answer
























            • As I know in SAS ODS i can only report results of my analysis...

              – Maciej
              Jul 23 '12 at 9:03











            • There is an option ods text but it don't do what i want which is colored syntax.

              – Maciej
              Jul 23 '12 at 13:45














            0












            0








            0







            This link describes how to generate reports using SAS. From skimming the pdf it seems that you can integrate SAS analyses and text:




            With SAS procedures, SAS DATA steps, and SAS features such as the
            Output Delivery System (ODS) and the macro facility, you have the
            tools to succeed at writing programs that analyze your data and
            create reports







            share|improve this answer













            This link describes how to generate reports using SAS. From skimming the pdf it seems that you can integrate SAS analyses and text:




            With SAS procedures, SAS DATA steps, and SAS features such as the
            Output Delivery System (ODS) and the macro facility, you have the
            tools to succeed at writing programs that analyze your data and
            create reports








            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 23 '12 at 8:50









            Paul HiemstraPaul Hiemstra

            48.5k9105133




            48.5k9105133













            • As I know in SAS ODS i can only report results of my analysis...

              – Maciej
              Jul 23 '12 at 9:03











            • There is an option ods text but it don't do what i want which is colored syntax.

              – Maciej
              Jul 23 '12 at 13:45



















            • As I know in SAS ODS i can only report results of my analysis...

              – Maciej
              Jul 23 '12 at 9:03











            • There is an option ods text but it don't do what i want which is colored syntax.

              – Maciej
              Jul 23 '12 at 13:45

















            As I know in SAS ODS i can only report results of my analysis...

            – Maciej
            Jul 23 '12 at 9:03





            As I know in SAS ODS i can only report results of my analysis...

            – Maciej
            Jul 23 '12 at 9:03













            There is an option ods text but it don't do what i want which is colored syntax.

            – Maciej
            Jul 23 '12 at 13:45





            There is an option ods text but it don't do what i want which is colored syntax.

            – Maciej
            Jul 23 '12 at 13:45





            protected by Community Nov 16 '18 at 8:43



            Thank you for your interest in this question.
            Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



            Would you like to answer one of these unanswered questions instead?



            Popular posts from this blog

            Xamarin.iOS Cant Deploy on Iphone

            Glorious Revolution

            Dulmage-Mendelsohn matrix decomposition in Python