Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6575773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:25:44+00:00 2026-05-25T15:25:44+00:00

I want to prepare a demo (that will play sequentially in clicks) for a

  • 0

I want to prepare a demo (that will play sequentially in clicks) for a presentation tutorial…Can somebody help me how can I write a demo, suppose the following are steps in the demo…

#start 
set.seed(1345)
x1 <- sample(letters[1:10], 5)
x1 
sort(x1)
x <- sample(1:10, 5)  
 y <- sample(c(11:20), 5)
require(lattice) 
plot(x,y)
z <- rnorm(5, 1, 0.5)
dataframe <- data.frame(x, y, z)
model1 <- lm(y ~x)
aov(model1)
#end

Sorry I could find a solution after hours and days of search. I appreciate your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:25:45+00:00Added an answer on May 25, 2026 at 3:25 pm

    Another way to do it:

    1. Save your script in a file (demo.R)
    2. Edit the script and sprinkle it with pause() in strategic places
    3. In R, define pause <- function() invisible(readline())
    4. Run the script with source("demo.R", echo=TRUE)

    It will then print & run your commands and stop and wait for input at the sprinkled pause(). Just hit <Enter> to continue.

    EDIT: I don’t know a good way to hide the pause() statement. A possible way would be to copy the code for source() and modify it to skip printing calls to pause(), but that’s a little overkill I think…

    …but you could rename the pause function to anything you like – including '....', but you still need to call it like this: ....()

    Hmmm. Maybe something like this:

    '....' <- function(...) invisible(readline())
    

    Then sprinkle your script with either:

    ....('Press Enter to continue')
    # Or
    ....(Press_Enter_to_continue)
    

    Another possibility if you rename the pause function to Pausing...:

    Pausing...(Press_Enter)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to do a mvn release:prepare, that will remove the -SNAPSHOT from the
I have a SqlCommand that I want to call Prepare() on whose CommandType =
I want to use ADO.NET Prepare command will increase performance if query is repeatevely
I want to create a function that has a select query inside that can
I want to detect and prepare a list of unique class names that are
I want to create a servlet that will allow me to upload image files
I am writing some code that will prepare my database for my application. In
I am graduating this June, so before that I want to prepare myself for
I would like to write a plug-in that will allow a custom written CRM
I want to prepare a text for the use in a LaTeX document. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.