php-r icon indicating copy to clipboard operation
php-r copied to clipboard

stuck in generate csv file

Open dipenpatel235 opened this issue 7 years ago • 8 comments

Hello.. Below sample code in it is not able to write in csv file. (yes already root user and permission) so can you try that sample code and check it working or not ? sapereate R code is working fine. Only issue is when i put that saperate code with php and your library then it is not working. Below is sample code used by me.

https://pastebin.com/raw/8xw0Af2q

dipenpatel235 avatar Aug 01 '18 06:08 dipenpatel235

@dipenpatel235 it may be that the R sub-process is spawned for a different user. Can you try getting your username within R code (e.g. using whoami)?

kachkaev avatar Aug 01 '18 09:08 kachkaev

i am executing php file as root user.

On Wed, Aug 1, 2018 at 2:52 PM Alexander Kachkaev [email protected] wrote:

@dipenpatel235 https://github.com/dipenpatel235 it may be that the R sub-process is spawned for a different user. Can you try getting your username within R code (e.g. using whoami https://github.com/r-lib/whoami)?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kachkaev/php-r/issues/41#issuecomment-409511203, or mute the thread https://github.com/notifications/unsubscribe-auth/AHwhuW_YrzzqKcGvn6E44Pb6Jqi9cnDVks5uMXNWgaJpZM4Vp6fn .

-- Thanks & Regards

Dipen Patel Mo : +91 9909013212 email:[email protected] Email%[email protected]

dipenpatel235 avatar Aug 01 '18 09:08 dipenpatel235

seems below code also not executing...

https://pastebin.com/raw/5E0cY9dp

dipenpatel235 avatar Aug 01 '18 09:08 dipenpatel235

What does the error say?

kachkaev avatar Aug 01 '18 10:08 kachkaev

not getting error... i

so not getting any idea

On Wed, Aug 1, 2018 at 4:16 PM Alexander Kachkaev [email protected] wrote:

What does the error say?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kachkaev/php-r/issues/41#issuecomment-409533508, or mute the thread https://github.com/notifications/unsubscribe-auth/AHwhuYVR6iIqcGGgQOAriXZZS6-JNdo9ks5uMYccgaJpZM4Vp6fn .

-- Thanks & Regards

Dipen Patel Mo : +91 9909013212 email:[email protected] Email%[email protected]

dipenpatel235 avatar Aug 01 '18 11:08 dipenpatel235

not getting error... so not getting any idea

it is stuck in that and that file content is same as paste in past .

here below screenshot is i am executing php file

On Wed, Aug 1, 2018 at 4:51 PM Dipen Patel [email protected] wrote:

not getting error... i

so not getting any idea

On Wed, Aug 1, 2018 at 4:16 PM Alexander Kachkaev < [email protected]> wrote:

What does the error say?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kachkaev/php-r/issues/41#issuecomment-409533508, or mute the thread https://github.com/notifications/unsubscribe-auth/AHwhuYVR6iIqcGGgQOAriXZZS6-JNdo9ks5uMYccgaJpZM4Vp6fn .

-- Thanks & Regards

Dipen Patel Mo : +91 9909013212 email:[email protected] Email%[email protected]

-- Thanks & Regards

Dipen Patel Mo : +91 9909013212 email:[email protected] Email%[email protected]

dipenpatel235 avatar Aug 01 '18 11:08 dipenpatel235

If the process halts and then timeouts, the problem may be to do with I/O between PHP and R then. This was once fixed in https://github.com/kachkaev/php-r/pull/35, but may be ongoing.

Unfortunately, I'm not sure how to fix this if I/O is the cause as this is too low-level for me. Feel free to try inspecting what gets stuck and submit a PR if you notice a bug. Most likely, the issue with I/O will be come from https://github.com/kachkaev/php-r/blob/master/src/Kachkaev/PHPR/Process/CommandLineRProcess.php.

kachkaev avatar Aug 01 '18 14:08 kachkaev

ok... if i will found something related error log and then give update to you.

Thanks

dipenpatel235 avatar Aug 02 '18 06:08 dipenpatel235