incorrect getSymbols.csv error message

Open Beginner friendly
#447 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
r
Domain
data

Research direction

Start at the getSymbols.csv entry point and inspect the file-not-found branch shown in the issue. Verify that the error message uses the requested extension, including an empty extension, and confirm the resulting output for the provided MERFX example.

Written by the indexing model from the issue text.

Description

getSymbols.csv("MERFX", dir="/home/data/riingo", extension="sparky")
should print out:
file MERFX.sparky does not exist in /home/data/riingo ....skipping
instead it prints out MERFX.csv does not exist. This is because "csv" is hardcoded in
if(!file.exists(sym.file)) {
cat("\nfile ",paste(Symbols[[i]],"csv",sep='.')," does not exist ",
"in ",dir,"....skipping\n")
next
}
The"csv" should be replaced with extension.

FWIW: I was trying to use extension="" to get it to not add a ".csv" extension, but that doesn't work.

Dominant language
R
Stars
906
Forks
233
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from joshuaulrich/quantmod

All issues in joshuaulrich/quantmod

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.