Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

stuck in generate csv file #41

Open
dipenpatel235 opened this issue Aug 1, 2018 · 8 comments
Open

stuck in generate csv file #41

dipenpatel235 opened this issue Aug 1, 2018 · 8 comments

Comments

@dipenpatel235
Copy link

dipenpatel235 commented Aug 1, 2018

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

@kachkaev
Copy link
Owner

kachkaev commented Aug 1, 2018

@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)?

@dipenpatel235
Copy link
Author

dipenpatel235 commented Aug 1, 2018 via email

@dipenpatel235
Copy link
Author

dipenpatel235 commented Aug 1, 2018

seems below code also not executing...

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

@kachkaev
Copy link
Owner

kachkaev commented Aug 1, 2018

What does the error say?

@dipenpatel235

This comment has been minimized.

@dipenpatel235
Copy link
Author

dipenpatel235 commented Aug 1, 2018 via email

@kachkaev
Copy link
Owner

kachkaev commented Aug 1, 2018

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 #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.

@dipenpatel235
Copy link
Author

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

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants