SCM

[#5147] matrix2databel does not check user is allowed to write files

Date:
2013-11-26 14:28
Priority:
2
State:
Open
Submitted by:
Maarten Kooyman (maartenk)
Assigned to:
Nobody (None)
Resolution:
Accepted As Bug
Operating System:
Linux (64bit)
Severity:
normal
Hardware:
PC
Version:
other
Component:
DatABEL
URL:
Summary:
matrix2databel does not check user is allowed to write files

Detailed description
When I use matrix2databel in a directory where there is no write access for the usere, there is a non informative error message:

dat1 <- matrix2databel(matr , filename="/etc/testnew")
Index file not exists: testnew.fvi
Error in checkAtAssignment("databel", "data", "NULL") :
assignment of an object of class “NULL” is not valid for @‘data’ in an object of class “databel”; is(value, "externalptr") is not TRUE


When I use this function in a directory where I do have access the everything works smoothly.
dat1 <- matrix2databel(matr , filename="/tmp/testnew")

Comments:

Message  ↓
Date: 2015-04-03 16:28
Sender: Lennart Karssen

This is also true for the mach2databel() function in the GenABEL package. Probably because both use the text2fvf() function (see convert_util.cpp).

Attached Files:

Changes

Field Old Value Date By
ResolutionNone2015-04-03 16:28lckarssen
SeverityNone2015-04-03 16:28lckarssen
Thanks to:
Vienna University of Economics and Business Powered By FusionForge