[Rd] Linking to native routines in other packages

2014-01-22 Thread Gregor Kastner
Dear all, in my package 'stochvol' I have unsuccessfully been trying to make a C routine called 'sampler' available to be called from other packages' C code. Following http://cran.r-project.org/doc/manuals/R-exts.html#Linking-to-native-routines-in-other-packages I have included #include R_init_

Re: [Rd] Linking to native routines in other packages

2014-01-22 Thread Gregor Kastner
Hi again, On Wed, 22 Jan 2014 06:39:17 -0600 Dirk Eddelbuettel wrote: | Working examples I know of: | |'xts' importing two functions from 'zoo' | |'RcppXts' importing approx. ten functions from 'xts' | | Maybe by comparing to these you can sort out the missing step at your end. Th

Re: [Rd] Linking to native routines in other packages

2014-01-27 Thread Gregor Kastner
un(test); >return R_NilValue; > } > > Note that if you only want the interface between the two packages to be at > low level (not visible from R), then you don’t need to conform to the > SEXP(SEXP...) interface. You can use anything you like. > > Romain > > Le 22 jan

Re: [Rd] Typeof for character vector in dataframe returns integer

2014-04-01 Thread Gregor Kastner
Hi Sandip, > Sorry for the wrong interpretation. So how to avoid that ? I mean how to > forcefully make it character vector ? As indicated by Joshua, ?data.frame will show you the way: df <- data.frame(gender, age, stringsAsFactors = FALSE) Best, /g ___

Re: [Rd] Asssistance

2015-03-03 Thread Gregor Kastner
Hi Evans, > * checking for file ‘OAR/DESCRIPTION’ ... OK > * preparing ‘OAR’: > * checking DESCRIPTION meta-information ... ERROR > Malformed Depends or Suggests or Imports or Enhances field. > Offending entries: > R (>=3.0.2) > Entries must be names of packages optionally followed by '<=' or '>