Open cgonza12 opened 12 years ago
Try changing your working directory to where the dll files are, either before loading playitbyr (and the associated csound package), or before using setCsoundLibrary()
.
So, in a clean R session:
oldwd <- getwd()
setwd("C:\\Program Files\\Csound\\bin\\") # or wherever your csound/bin directory is
library(playitbyr)
setwd(oldwd)
If you already have playitbyr or the csound loaded in your session, you could alternatively do:
oldwd <- getwd()
setwd("C:\\Program Files\\Csound\\bin\\") # or wherever your csound/bin directory is
setCsoundLibrary("csound64.dll.5.2") # or whatever the dll name is
setwd(oldwd)
The underlying problem is that package rdyncall, which my packages rely on to link to csound, seems to sometimes get confused with Windows paths on some but not all Windows computers.
Let me know if this works -- thanks for reporting, and yes, this is the perfect place to post playitbyr issues.
I tried this recommendation -
setwd(oldwd) oldwd <- getwd() setwd("C:\Program Files\Csound\bin\") # or wherever your csound/bin directory is (which is the same here ) and got Error in setwd("C:\Program Files\Csound\bin\") : cannot change working directory and setCsoundLibrary(C:\Program Files (x86)\Csound\bin\csound64.dll.5.2) did Error: unexpected input in "setCsoundLibrary(C:\ Certainly doesn't work ...
Works fine on the Max and Linux side any hints.
Been a while since I've looked at this, I'll give it a shot and let you know!
@scotgl -- It looks like R is not actually changing directories in the setwd
command.
In the code you posted it looks like you entered the directory as "C:\Program Files\Csound\bin\"
but R needs those as double backslashes. It should be setwd("C:\\Program Files\\Csound\\bin\\")
instead.
Does that help?
Not sure if I'm posting this in the right place, but I'm brand new to sonification and am trying to use playitbyr to sonify some driving simulator data. For some reason none of the .dll files I've tried from the csound/bin folder have been accepted as a csound library in R. I've been using the setCsoundLibrary() function and have put in just about every path I can think of... Anyone having similar issues on Windows machines? Any suggestions?
thanks in advance