Displaying 20 results from an estimated 5000 matches similar to: "setwd problems"
2005 Jul 13
1
problems with MNP
Hi all,
Does anybody have a hint on what may be going wrong in this R code? I
mimic the sample code from the MNP developers but I seem unable to get the
choice specific variables right.
Thanks,
Joan Serra
> rm(list=ls())
> library(foreign)
> small<-read.spss("small.sav")
Warning message:
small.sav: Unrecognized record type 7, subtype 13 encountered in system
file.
>
2007 Sep 12
1
reshape help
Hi,
I'm trying to use reshape but I cannot quite understand how it works.
Could somebody help me on this? Example, my data is something like:
mydat <- data.frame(tree= 1:10, serra=rep(1:2, c(5,5)), bt01= 101:110,
bt02= 201:210, bt03= 301:310, mm01= 9101:9110, mm02= 9201:9210, mm03=
9301:9310)
> mydat
tree serra bt01 bt02 bt03 mm01 mm02 mm03
1 1 1 101 201 301 9101 9201
2012 Aug 07
1
Hist function
Hello everyone,
First i explain my aim. I would like to calculate the frecuency of
temperature (datos.mx1, columns 3-6) for each month with the thresholds of
table lf.med and lc.med.
numero1 <- hist(subset(datos.mx1[,3],
datos.mx1$Mes==1),plot=FALSE,breaks=c(min(datos.mx1[,3]),lf.med[1,2],lc.med[1,2],max(datos.mx1[,3])))
# First month and only the first weather station (column 3)
I now
2012 Jul 30
1
locked binding of setwd() in R 2.15.x causes .Rprofile to fail
[Env: Win XP, R 2.14.2, R 2.15.0]
I have a replacement function for setwd() in my .Rprofile which displays
the current R path in the R window
title. It no longer works in R 2.15.x, giving the error below. Worse,
the error prevents the rest of my
.Rprofile script from completing.
Is there some way to rescue this, i.e., preserve this behavior in
R 2.15? If not, how can I modify my script so it
2009 Oct 30
1
.Rprofile replacement function setwd() causing errors
In my .Rprofile I have the following functions which display the
current directory in the main R window title bar,
and modify base::setwd() to keep this up to date. I like this because I
can always tell where I am in the file system.
cd <- function(dir) {
base::setwd(dir)
utils::setWindowTitle( short.path(base::getwd()) )
}
short.path <- function(dir, len=2) {
np
2013 Feb 07
1
assignInNamespace to create a setwd() replacement: how to use unlockBinding()?
In my .Rprofile for Windows, I had the following functions defined to
mirror a few features
I miss from linux:
(a) replace setwd() with a version that stashes the current directory so
it can be easily restored
(b) writes a short version of the current R directory to the Windows
title bar: I can always see where I am,
with multiple Rgui windows.
(c) creates a cd() shorthand for setwd(), but
2012 Nov 02
3
Strange behaviour of setwd/getwd
I've found the following strange behaviour R (RStudio) which has been
confirmed by another user in RGui.
Inside a script I want to set two variables:
default.wd = getwd()
tmp.wd = setwd(choose.dir())
After choosing tmp.wd the value of default.wd is shown in Workspace, but
getwd() is giving back the correct string of tmp.wd.
Is there a workaround for the problem?
I'm working on
2009 Jan 20
2
Sweave: conflict between setwd and \SweaveOpts{prefix.string=}
Hello
I think there is a conflict between setwd() and
\SweaveOpts{prefix.string=}. In the same document, those both command
get Sweave confuse the files and directories. See:
say my .Rnw document is in File1
If one inserts some setwd() for another file:
-setwd(File2)
then the command \SweaveOpts{prefix.string=graphics/Rplots} will search
the "graphics" folder in File2 because of
2008 Dec 04
1
setwd and list.files / linux
Hey,
two questions regarding setwd and list.files:
I try to use the function list.files:
>datapath<-'/nfs/home/m/cremer/gaw/data/traws_chrs'
>fl<-list.files(datapath, pattern="\\.tped")
but I get the following error message:
Warning message:
In list.files(datapath, pattern = "\\.tped") :
list.files: '/nfs/home/m/cremer/gaw/data/traws_chrs/'
2008 Jan 06
3
run setwd at the launch of R
Dear all,
my R files (and the .csv files as well) are saved somewhere pretty
deep down my hard disk.
i have to chage to working directory therefore everytime i run R (i
run it on powerPC mac), which is disgusting.
using the setwd command at the beginning of an R script doesnt really
help because i have to find this file first by hand.
I am looking for possibility to run setwd during the
2017 Jul 14
3
setwd in windows
Dear friends - windows R 3.3.3 - sorry to ask a simple question - but I
cannot make setwd work properly in scripts
In the example below I have made a directory in C (firstdir) and a
directory in that (secdir) and the intention is to change directory to
the second from the first - it works when I put the entire path but not
the tilde - what am I missing? I was around rwf 2.14 as per the help
2013 Feb 20
4
Error in setwd(outDir) : cannot change working directory
I installed R on my Windows laptop in C:\Program Files\R\R-2.15.2
and am able to open RGUI (640bit), see packages and run commands. However,
when I test the installation and run the basic tests and all the tests on
the standard and recommended packages i.e.:
library("tools")
testInstalledBasic("both")
testInstalledPackages("base", errorsAreFatal
2012 Feb 26
2
Help needed! Error in setwd(newdir) : cannot change working directory
Hi Guys,
I am new to R and just trying to write a small script to automate a couple commands. But I run into the setwd(): cannot change working directory.
I googled a little bit and tried all fixes/suggestions with no success.
Basically I have a script that works from inside a directory with my data (/home/sean/Rtest/Data01). Now I want to modify the script to make it run from the upper directory
2007 Mar 31
4
Sponsored development - Monodirectional audio handling
Hi Guys,
we're needing a special implementation on Asterisk
Our intention is to contribute the development and share back the code
to Asterisk community
Here is what we need:
- An option to Asterisk Dial command which, if used, when calls is
answered gives monodirectional audio
(Caller should hear the called party but not vice-versa)
- A DTMF sequence (maybe handled in features.conf) for
2004 Feb 12
6
Basic Help
OK I have been trying to learn how to use this program and I cannot even
import any data into it. I have downloaded all the manuals but they do not
seem to help. Is there a book on R for dummies???
2017 Aug 05
3
Error in setwd("dir") :
Hello, I got some of the R source code and not being able to Run it in
RStudio.
I get the error:
Error in setwd("dir") :
cannot change working directory
I have gone through forums but nothing seemed relevant to my issue.
What bugs me the most is the ("dir") that the error shows, is of those who
wrote the source code and not mine(it still sees the directory of their
2013 Jan 11
1
Patch for setwd() to show path in error message
Below is a patch for setwd() to show path in error message. Current
it just gives error messages such as:
Error in setwd(libdir) : cannot change working directory
with the patch it should (read untested) give:
Error in setwd(libdir) : cannot change working directory to 'path/that/fails/'
PATCH:
% diff -u util.c "util,patch.c"
--- util.c 2012-12-16 13:13:05.002249900
2004 Mar 20
1
setwd() permenent
Hello
when I close and reopen R it gives back a different wd
than what I used in setwd. how can I get it to
permenently use dirname in setwd("dirname") and not
the other name it keeps defaulting to?
I am using W2K and ESS
thanks
2008 Feb 29
2
setwd on other computer?
hi members,
is it possible to set the work directory ( e.g. via setwd() ) on a other
computer than R has been started?
thanks
paul
2023 Nov 20
1
Error in setwd(dir) when initializing R
On Mon, 20 Nov 2023 12:18:11 +0100
Ana de las Heras Molina <andelash at ucm.es> wrote:
> Error in setwd(dir) : no es posible cambiar el directorio de trabajo
If you run traceback() first thing after getting this error, does it
say anything useful? (Anything besides "No traceback available" would
count as useful.)
Do you have a file named .RData in your home directory? If yes,