-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in (function () : unused argument (x = 3) #290
Comments
Hi. Conceptually, call Njobs <- 1:4
ids <- batchMap(fun=myFct, x=Njobs) and alternative would be to call: Njobs <- 1:4
res <- lapply(FUN=myFct, X=Njobs) If you try the latter, you'll get the same type of error;
So, the problem is that This leads to the second thinko, I think you've got: Your PS. Please have a look at https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax how to do code-formatting here on GitHub; makes it all easier to read. |
@HenrikBengtsson Thank you so much for your quick response, and my apologies for the formatting on the previous post. So the issue here is then with my function. I have never created or even attempted to create a function, so this was my first try. When I run the function as a stand-alone using this code (see code 1), the code works correctly; it just breaks when submitting the job to the cluster. Any advice on how to get this going would be greatly appreciated! Code 1
|
What do you expect from your function when you call it multiple times?
I'd say, it should be your first goal to figure that part out. That'll solve half of your problem. I would not worry about batchtools at all, until you solved that. Instead, focus on how it should work with a for-loop or an lapply() call. I don't have the resources to work with you on this - I recommend you reach out on Stack Overflow, or to some local R folks if you have those around. |
Hi,
I am having an issue with getting batchtools to work. I am following this tutorial and have edited the function to work with my phyloseq function. When I just the function on it on and get the results it works. However, when I submit it with batchtools it always fails. Can you please help.
Here is my complete code and errors:
#Create function
#Run function to make sure it actually works
myFctNam()
**#Submit slurm job **
The text was updated successfully, but these errors were encountered: