You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed fch via pip but wanted to generate plots, so also ran git clone https://github.com/oduwsdl/FollowerCountHistory in /tmp/.
While my current working directory is /tmp/, I ran fch machawk1 > followers.csv. This created /tmp/followers.csv.
I then moved into the source directory using cd FollowerCountHistory/, ran Rscript twitterFollowerCount.R ../followers.csv, and received an error message with no plots generated:
[1] "Unsupported file type"
Warning message:
In if (ext == "csv") { :
the condition has length > 1 and only the first element will be used
However, running the same command with an absolute path to the CSV file works, i.e., Rscript twitterFollowerCount.R /tmp/followers.csv generates plots without an error. Further, moving the CSV file into the source directory (mv ../followers.csv ./) and running Rscript twitterFollowerCount.R followers.csv works but adding the relative part of the data path, Rscript twitterFollowerCount.R ./followers.csv causes the same above error.
This is likely an issue with the Rscript trying to detect the file type and choking on anything but the absolute path or the data file in the same directory.
FollowerCountHistory from current master (e918af7)
I installed fch via pip but wanted to generate plots, so also ran
git clone https://github.com/oduwsdl/FollowerCountHistory
in/tmp/
.While my current working directory is
/tmp/
, I ranfch machawk1 > followers.csv
. This created/tmp/followers.csv
.I then moved into the source directory using
cd FollowerCountHistory/
, ranRscript twitterFollowerCount.R ../followers.csv
, and received an error message with no plots generated:However, running the same command with an absolute path to the CSV file works, i.e.,
Rscript twitterFollowerCount.R /tmp/followers.csv
generates plots without an error. Further, moving the CSV file into the source directory (mv ../followers.csv ./
) and runningRscript twitterFollowerCount.R followers.csv
works but adding the relative part of the data path,Rscript twitterFollowerCount.R ./followers.csv
causes the same above error.This is likely an issue with the Rscript trying to detect the file type and choking on anything but the absolute path or the data file in the same directory.
The text was updated successfully, but these errors were encountered: