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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:01:45+00:00 2026-05-13T10:01:45+00:00

I try this command : Rscript /Users/test/Scripts/arg_test.R path_in=/Users/test/GR/web-app/Rproject/Inputs/Rmerge/Description.csv path_in2=/Users/test/IdeaProjects/Rproject/Inputs/Rmerge/Template_Auto.csv but I have this error

  • 0

I try this command :

Rscript "/Users/test/Scripts/arg_test.R" "path_in=/Users/test/GR/web-app/Rproject/Inputs/Rmerge/Description.csv" path_in2="/Users/test/IdeaProjects/Rproject/Inputs/Rmerge/Template_Auto.csv"

but I have this error :
Error in parse(text = args[[i]]) : unexpected ‘/’ in “path_in=/”

Part of Rscript :

args=(commandArgs(TRUE))

if(length(args)==0){
    print("No arguments supplied.")
}else{
    for(i in 1:length(args)){
         eval(parse(text=args[[i]]))
    }
}


path_out = "/Users/test/Rproject/Results/"

annotation = read.csv(paste(path_in, sep=""))

modules = read.csv(paste(path_in2, sep=""))

merge_output = merge(annotation, modules, by = "Module")

How can I define path_in as argument(args) ?

Thank you.

  • 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-13T10:01:46+00:00Added an answer on May 13, 2026 at 10:01 am

    Replacing the = with the proper assignment operator <- and protecting each argument with single quotes works for me:

    Rscript /tmp/RscriptArgs.R  \
      'path_in<-"/Users/test/GR/web-app/Rproject/Inputs/Rmerge/Description.csv"'  \
      'path_in2<-"/Users/test/IdeaProjects/Rproject/Inputs/Rmerge/Template_Auto.csv"'
    

    where /tmp/RscriptArgs.R is what you showed from your script.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try this command to upload a file (standard.xml) into table book the file
When I try to use this command appuifw.note(uConnecting to %s % (address), conf); I'm
i try this command line xcopy e:\myfolder /EXCLUDE:excludeList.txt \\192.168.158.15\public\comp\myfolder /E/I/D/R/H/Y the command copy all
I am trying to run this command here: f = open(|ffmpeg -i /Users/joaoh82/Desktop/teste.MP4) result
In a command prompt, Try this out: powershell aaa echo ErrorLevel is %errorlevel% Powershell
Hi I want to execute this command from java code : cd C:/Users/Amira/junoWorkspace/TestProjectUI mvn
I'm running this command in a Python script: try: print sql_string cursor.execute(sql_string) except: print
I am getting this error when I try to run this MySQL command: CREATE
whenever I try to execute this sql command: create database sitename I get this:
I try to walk through this tutorial Facebook Tutorial % ~/facebook-ios-sdk/scripts/build_facebook_ios_sdk_static_lib.sh My question: this

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.