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 8010523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:45:37+00:00 2026-06-04T18:45:37+00:00

I am testing out the bio3d package in R (Windows) and encountered a rather

  • 0

I am testing out the bio3d package in R (Windows) and encountered a rather general problem:

The “seqaln” function in bio3d tries to issue the following system command:

#cmd = "muscle -in C:\\Users\\derek\\AppData\\Local\\Temp\\RtmpUSXJCb\\file756f52c9 -out c:/pdb/temp.fas  -seqtype protein"
system(shQuote(cmd))

As far as I can tell, nothing happened. However, once I removed the “shQuote”, the function – seqaln – worked as expected. All shQuote does is added a pair of “” around the command:

"\"C:/_utils/muscle.exe -in C:\\Users\\kfoo\\AppData\\Local\\Temp\\RtmpUSXJCb\\file756f52c9 -out c:/pdb/temp.fas  -seqtype protein\""

Is there something wrong with using shQuote?

Thanks!

  • 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-06-04T18:45:38+00:00Added an answer on June 4, 2026 at 6:45 pm

    The problem is that you are applying shQuote() to a character string that contains both a command and it’s arguments. None of the examples in shQuote() does that, and neither should you!

    The following doesn’t work, for the same reason that \"echo HelloWorld\" fails when typed directly at Windows’ cmd command line:

    system(shQuote("echo HelloWorld"))
    

    Instead, you should do the following:

    system("echo HelloWorld")
    # HelloWorld
    

    Or, if both your command and its argument may contain spaces, you can use shQuote() like this:

    system(paste(shQuote("echo"), shQuote("HelloWorld")))
    # HelloWorld
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am testing out the simple pong game found here: https://github.com/shangaslammi/frp-pong The problem is
I was testing out the db2 max function to see if it picks NULL
While testing out a UDP multicast server that I've written on Windows 7 Ultimate
I was testing out XSLT identity transform and so I randomly chose the following
I am testing out a property system and I want to make sure that
I was testing out covariant return types and came across this problem. class Vehicle
I just started learning code (Java specifically), and i'm testing out a password system
I am testing out the very awesome Knockoutjs. I am facing a peculiar problem.
Newbie using mongo 2.0.1 32-bit on windows tried testing out shards as follows: (4)
I am testing out a way to mimic C# properties and created the following

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.