Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Clickable examples in ado help files


From   vwiggins@stata.com (Vince Wiggins, StataCorp)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Clickable examples in ado help files
Date   Thu, 18 Sep 2003 13:25:31 -0500

Mark Schaffer <M.E.Schaffer@hw.ac.uk> asks about clickable commands in help
files and also notes some difficulty using the SMCL tag {stata ...} to load
datasets over the net,

> [...] I tried to put a clickable command to load the data in the
> help file with the command
>
> {stata use "http://fmwww.bc.edu/ec-p/data/macro/abdata.dta"; : . stata 
> use http://fmwww.bc.edu/ec-p/data/macro/abdata.dta}   

Mark notes that he doesn't get what he wants on the screen and clicking the
link produces an error message, rather than load the data.  I agree with Nick
Cox <n.j.cox@durham.ac.uk> that the best idea is often to run a program that
preserves the data, but Mark can make his SMCL help file load this dataset.
The problem with the construct Mark is using is that while -use- does not need
this particular file name bundled in quotes, the SMCL tag {stata ...} DOES
need the full command name bundled in quotes.  Using

{stata "use http://fmwww.bc.edu/ec-p/data/macro/abdata.dta"; : . stata use http://fmwww.bc.edu/ec-p/data/macro/abdata.dta}

into the help file, works under both Stata 7 and Stata 8.

 
-- Vince 
   vwiggins@stata.com

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index