Error with STATSFIRTH extension: error in dirname(fpath)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error with STATSFIRTH extension: error in dirname(fpath)

kimwilliamsg
Hello

I am running SPSS 19 on a mac. I have successfully installed the R Essentials integration package and the STATSFIRTH extension. However, when I attempt to run it I get the following error message

"Error in dirname(fpath) : a character vector argument expected"

I have installed the R packages that are also needed to run the command. Any thoughts on how to resolve?

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Error with STATSFIRTH extension: error in dirname(fpath)

Jon K Peck
This indicates that some required file or files are missing.  In particular, STATS_FIRTHLOG.R was not found on the search path for R extensions.  The first thing to check is whether this is true for all the R-based extensions.  Try Analyze > Regression > Residual Heteroscedasticity Test, for example.

You can run from a syntax window SHOW EXT to see where Statistics is looking for extension files.  Also run

begin program r.
print(.libPaths())
end program.

That will show the specific places where the code was looking for STATS_FIRTHLOG.R when the error occurred.  If it is not in any of those locations, then something failed in installing the package - perhaps a permissions issue.



Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        kimwilliamsg <[hidden email]>
To:        [hidden email]
Date:        09/14/2015 06:40 AM
Subject:        [SPSSX-L] Error with STATSFIRTH extension: error in dirname(fpath)
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hello

I am running SPSS 19 on a mac. I have successfully installed the R
Essentials integration package and the STATSFIRTH extension. However, when I
attempt to run it I get the following error message

"Error in dirname(fpath) : a character vector argument expected"

I have installed the R packages that are also needed to run the command. Any
thoughts on how to resolve?

Thanks!



--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Error-with-STATSFIRTH-extension-error-in-dirname-fpath-tp5730598.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD



===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD