Re: [R] testing my package : unstated dependency to self in package tests

2020-02-17 Thread Servet Ahmet Çizmeli
That worked. Thanks. From: Michael Dewey Sent: Sunday, February 16, 2020 5:54 PM To: Servet Ahmet Çizmeli ; r-help@r-project.org Subject: Re: [R] testing my package : unstated dependency to self in package tests When something similar happened to me I found

[R] testing my package : unstated dependency to self in package tests

2020-02-16 Thread Servet Ahmet Çizmeli
I am updating my CRAN package geoSpectral. I get the following Warning during R CMD check : ... * checking for unstated dependencies in �tests� ... WARNING 'library' or 'require' call not declared from: �geoSpectral� All the .R files I have under the testhat directory begin by : library(ge

[R] CRAN package submission failed on solaris : timezone problem

2017-04-12 Thread Servet Ahmet Çizmeli
Hi everyone I just submitted my new package to CRAN. All checks passed on all platforms, except one in solaris : as(df2, "Spectra") Error: tz1.set == tz2.set is not TRUE More details on : https://cran.r-project.org/web/checks/check_results_geoSpectral.html In this package I defined an

[R] UUIDgenerate() withn a s4 class produces the same uuid at each instance

2016-06-08 Thread Servet Ahmet Çizmeli
Hello When I create a new instance of an S4 class in R, I would like the newly created object to have a unique id field. I try to achieve it through UUIDgenerate() from the uuid package. The problem is that I obtain the same UUID at every new object instance : library(uuid) setClass("C", re

Re: [R] stupid regexp question

2010-04-20 Thread servet ahmet çizmeli
Both methods solve my problem. Thanks a lot to Gabor and David! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal,

[R] stupid regexp question

2010-04-19 Thread servet ahmet çizmeli
Hello, I have a stupid regexp question. I have a large data frame of strings. I would like to convert all occurences of : "W.m^{-2}" to "W/m2" I make the following test : gsub(glob2rx("W.m^{-2}"), "W/m2", "W.m^{-2}") but it does not seem to work. I don't know how to do it otherwise as I coul

Re: [R] plotting with varying dot sizes

2009-12-11 Thread servet ahmet çizmeli
I think I located the problem. the data frame associated with my spatial object (Insitu_sp) contains some NAs. And in this case, the function plot does not like NAs. It simply behaved strangely. The code below did the trick : idx = is.na(Insitu[,"SPM"]) ptsize = 0.35*(sqrt(Insitu[!idx,"SPM"])+1) p

[R] plotting with varying dot sizes

2009-12-10 Thread servet ahmet çizmeli
Dear all, I am trying to plot on a spatial map the punctual measurements of the data located in the file (https://opengeo.metu.edu.tr/test.csv). I'd like to have the dots in some way proportional to the magnitudes of the measurements. I have difficulties with the code given below: The dot sizes