[R] Vector of char generated by Sys.getenv function is not available when the package is loaded
Jose Claudio Faria
joseclaudio.faria at gmail.com
Tue Sep 24 12:50:16 CEST 2013
Hi,
I prefer to build my packages on Linux!
I changed the object trPaths as below,
After R CMD build TinnRcom on Linux and did the installation
on Windows from the source code: It worked very well!
I thank all who contributed to the solution and apologize for my lack
of knowledge in this area.
trPaths <-
file.path(ifelse(.Platform$OS.type == "windows",
Sys.getenv("APPDATA"),
Sys.getenv("HOME")),
"Tinn-R",
"tmp",
c('',
'search.txt',
'objects.txt',
'file.r',
'selection.r',
'block.r',
'lines.r',
'reformat-input.r',
'reformat-output.r'),
fsep='\\')
> install.packages('TinnRcom_1.0-09.tar.gz', repos=NULL, type='source')
* installing *source* package 'TinnRcom' ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (TinnRcom)
> library(TinnRcom)
Loading required package: tcltk
Loading required package: Hmisc
Loading required package: survival
Loading required package: splines
Loading required package: Formula
Hmisc library by Frank E Harrell Jr
Type library(help='Hmisc'), ?Overview, or ?Hmisc.Overview')
to see overall documentation.
Attaching package: ‘Hmisc’
The following object is masked from ‘package:survival’:
untangle.specials
The following objects are masked from ‘package:base’:
format.pval, round.POSIXt, trunc.POSIXt, units
Loading required package: R2HTML
Loading required package: svSocket
Loading required package: formatR
> trPaths
[1] "C:\\Users\\jcfaria\\AppData\\Roaming\\Tinn-R\\tmp\\"
[2] "C:\\Users\\jcfaria\\AppData\\Roaming\\Tinn-R\\tmp\\search.txt"
[3] "C:\\Users\\jcfaria\\AppData\\Roaming\\Tinn-R\\tmp\\objects.txt"
[4] "C:\\Users\\jcfaria\\AppData\\Roaming\\Tinn-R\\tmp\\file.r"
[5] "C:\\Users\\jcfaria\\AppData\\Roaming\\Tinn-R\\tmp\\selection.r"
[6] "C:\\Users\\jcfaria\\AppData\\Roaming\\Tinn-R\\tmp\\block.r"
[7] "C:\\Users\\jcfaria\\AppData\\Roaming\\Tinn-R\\tmp\\lines.r"
[8] "C:\\Users\\jcfaria\\AppData\\Roaming\\Tinn-R\\tmp\\reformat-input.r"
[9] "C:\\Users\\jcfaria\\AppData\\Roaming\\Tinn-R\\tmp\\reformat-output.r"
All the best,
--
///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\
Jose Claudio Faria
Estatistica
UESC/DCET/Brasil
joseclaudio.faria at gmail.com
Telefones:
55(73)3680.5545 - UESC
55(73)9100.7351 - TIM
55(73)8817.6159 - OI
///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\
More information about the R-help
mailing list