خرید بک لینک

Vote count: 0

I have written an R script, which I run from R using the command source("script.r"). It works perfectly.

However, when I try to run the exact same script from command line using either one of the commands: Rcript script.r, R --vanilla < script.r or R CMD BATCH script.r I get the error: "Error in library(igraph): there is no package called 'igraph'"

If I remove the line from the script and run it without the command library(igraph), then I get the error that function graph.frame.data could not be found, which is a function of igraph. The script that run from the Rstudio, does not contain the line library(igraph) and I don't get such an error.

When trying to inform myself about problems of ruing igraph from a script I have not found any additional information.

Some more information: I am building a graph from multiple files and then doing calculations using the igraph library on that created graph. This is executed within a loop, that goes through all (specific) directories. Output is written out into a file using cat(..).

Thanks for the help in advance.

asked 39 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 15 تير 1395 ساعت: 22:56

صفحه بندی